Skip to content

Commit ce1c02c

Browse files
committed
feat(emulators): allow disabling emulators with env variable
1 parent eb00e3e commit ce1c02c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/nuxt/src/module/emulators.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export async function willUseEmulators(
1212
// emulators is always defined
1313
emulators.enabled &&
1414
// Disable emulators on production unless the user explicitly enables them
15-
(process.env.NODE_ENV !== 'production' || process.env.VUEFIRE_EMULATORS)
15+
(process.env.NODE_ENV !== 'production' ||
16+
(process.env.VUEFIRE_EMULATORS &&
17+
process.env.VUEFIRE_EMULATORS !== 'false'))
1618

1719
// Avoid even checking the firebase.json
1820
if (!isEmulatorEnabled) {

0 commit comments

Comments
 (0)