[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect databaseUrl in Functions emulator #2979

Merged
merged 4 commits into from
Dec 28, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update src/emulator/functionsEmulatorRuntime.ts
Co-authored-by: Yuchen Shi <yuchenshi@google.com>
  • Loading branch information
samtstern and yuchenshi committed Dec 28, 2020
commit b3a553fb99762113b917993d34b0ead6fa943739
2 changes: 1 addition & 1 deletion src/emulator/functionsEmulatorRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ async function initializeEnvironmentalVariables(frb: FunctionsRuntimeBundle): Pr
ns = asUrl.hostname.split(".")[0];
}

emulatedDatabaseURL = `http://${formatHost(frb.emulators.database)}?ns=${ns}`;
emulatedDatabaseURL = `http://${formatHost(frb.emulators.database)}/?ns=${ns}`;
}

process.env.FIREBASE_CONFIG = JSON.stringify({
Expand Down