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 @@
Inject an environment variable in the node functions emulator to tell the google-gax SDK not to look for the metadata service. (#6860)
2 changes: 1 addition & 1 deletion src/emulator/functionsEmulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ export class FunctionsEmulator implements EmulatorInstance {
cwd: backend.functionsDir,
env: {
node: backend.bin,
METADATA_SERVER_DETECTION: "none",
...process.env,
...envs,
PORT: socketPath,
Expand Down Expand Up @@ -1451,7 +1452,6 @@ export class FunctionsEmulator implements EmulatorInstance {
/**
* Gets the address of a running emulator, either from explicit args or by
* consulting the emulator registry.
*
* @param emulator
*/
private getEmulatorInfo(emulator: Emulators): EmulatorInfo | undefined {
Expand Down