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

Expose functions.config in the v2 namespace to avoid breaking the Functions Emulator #1607

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Sep 9, 2024

Unforutnately, Functions Emulator monkey-patches the functions.config() method.

Not exposing the config() method in the default namespace crashes the functions emulator 😢 .

https://github.com/firebase/firebase-tools/blob/0e2ab54c522d40ec9fe874e108332427e4886e0a/src/emulator/functionsEmulatorRuntime.ts#L717

In the near future, we'll make monkey-patching robust in the emulator to not crash when functions.config() method is missing

Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG to this primate. Thanks!

@taeold taeold added this pull request to the merge queue Sep 10, 2024
Merged via the queue into master with commit 0493271 Sep 10, 2024
13 checks passed
@taeold taeold deleted the dl-expose-config branch September 10, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants