Skip to content

Commit b344d1d

Browse files
authored
Adds environment variable for FDC emulator. (#8292)
1 parent 6242f91 commit b344d1d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/emulator/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export class Constants {
7676
// Environment variable to override SDK/CLI to point at the Realtime Database emulator.
7777
static FIREBASE_DATABASE_EMULATOR_HOST = "FIREBASE_DATABASE_EMULATOR_HOST";
7878

79+
// Environment variable to discover the Data Connect emulator.
80+
static FIREBASE_DATACONNECT_EMULATOR_HOST = "FIREBASE_DATACONNECT_EMULATOR_HOST";
81+
7982
// Environment variable to override SDK/CLI to point at the Firebase Auth emulator.
8083
static FIREBASE_AUTH_EMULATOR_HOST = "FIREBASE_AUTH_EMULATOR_HOST";
8184

src/emulator/env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export function setEnvVarsForEmulators(
4141
case Emulators.TASKS:
4242
env[Constants.CLOUD_TASKS_EMULATOR_HOST] = host;
4343
break;
44+
case Emulators.DATACONNECT:
45+
env[Constants.FIREBASE_DATACONNECT_EMULATOR_HOST] = host;
4446
}
4547
}
4648
}

0 commit comments

Comments
 (0)