Skip to content

Commit 08f79fd

Browse files
authored
fix: fix GA4 under-reporting of Functions runtime config usage by restoring has_runtime_config tracking during deploy. (#9069)
1 parent 148a321 commit 08f79fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/deploy/functions/prepare.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ export async function prepare(
100100
runtimeConfig = { ...runtimeConfig, ...(await getFunctionsConfig(projectId)) };
101101
}
102102

103+
// Track whether legacy runtime config is present (i.e., any keys other than the default 'firebase').
104+
// This drives GA4 metric `has_runtime_config` in the functions deploy reporter.
105+
context.hasRuntimeConfig = Object.keys(runtimeConfig).some((k) => k !== "firebase");
106+
103107
const wantBuilds = await loadCodebases(
104108
context.config,
105109
options,

0 commit comments

Comments
 (0)