Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed a bug where the Admin SDK would not automatically connect to the Data Connect emulator when run in the Functions emulator. (#8379)
3 changes: 3 additions & 0 deletions src/emulator/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export class Constants {
// Environment variable to discover the Data Connect emulator.
static FIREBASE_DATACONNECT_EMULATOR_HOST = "FIREBASE_DATA_CONNECT_EMULATOR_HOST";

// Alternative (deprecated) env var for Data Connect Emulator.
static FIREBASE_DATACONNECT_ENV_ALT = "DATA_CONNECT_EMULATOR_HOST";

// Environment variable to override SDK/CLI to point at the Firebase Auth emulator.
static FIREBASE_AUTH_EMULATOR_HOST = "FIREBASE_AUTH_EMULATOR_HOST";

Expand Down
1 change: 1 addition & 0 deletions src/emulator/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function setEnvVarsForEmulators(
break;
case Emulators.DATACONNECT:
env[Constants.FIREBASE_DATACONNECT_EMULATOR_HOST] = `http://${host}`;
env[Constants.FIREBASE_DATACONNECT_ENV_ALT] = `http://${host}`;
// Originally, there was a typo in this env var name. To avoid breaking folks unecessarily,
// we'll keep setting this.
env["FIREBASE_DATACONNECT_EMULATOR_HOST"] = host;
Expand Down