diff --git a/src/deploy/functions/prepare.ts b/src/deploy/functions/prepare.ts index ff0efbd5f2d..9099c5fb2db 100644 --- a/src/deploy/functions/prepare.ts +++ b/src/deploy/functions/prepare.ts @@ -100,6 +100,10 @@ export async function prepare( runtimeConfig = { ...runtimeConfig, ...(await getFunctionsConfig(projectId)) }; } + // Track whether legacy runtime config is present (i.e., any keys other than the default 'firebase'). + // This drives GA4 metric `has_runtime_config` in the functions deploy reporter. + context.hasRuntimeConfig = Object.keys(runtimeConfig).some((k) => k !== "firebase"); + const wantBuilds = await loadCodebases( context.config, options,