-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
provided region for cloud functions is ignored #2909
Comments
Hmmm... good catch. It's probably that the injected Functions instance is the "default" instance with respect to the SDK. Clearly I should prioritize the one that is passed to In the meantime you should be able to access your function initialized with a region by injecting the |
### Bug fixes * **messaging:** `onMessage` will no longer destablize the Angular Zone * **core:** Injected Classes now have a better fallback pattern for finding defaults, [#2909](#2909) allowing use of emulators and other config options as expected * **schematic:** upgrade schematic will no longer rewrite `.ts` files outside of your project root, [#2907](#2907) ### Misc * **changelog(7.0.0):** break notice for `compat/auth#useEmulator` * **changelog(7.0.0):** feature of `compat/storage#useEmulator` * **changelog(7.0.1):** Added entry * **sample(modular):** Adding `connectEmulator` examples * **sample(compat):** Cleaned up the service worker registration * **functions:** defensively load auth first, if provided * **storage:** defensively load auth first, if provided * **compat/firestore:** clean up how auth is initialized * **compat/database:** clean up how auth is initialized
Cutting 7.0.1 now, which will have the fix. Thanks for catching this! |
wow that was quick. thanks a lot. |
Excuse me I still have the same error, i am on an angular 13 version and angularfire 7.2. For the moment I use the cloud functions emulator. Could you unblock me? |
I'm not getting briefly explanation Please |
Version info
Angular: 12.2.3
Firebase: 9.0.0
AngularFire: 7.0.0
Other (e.g. Ionic/Cordova, Node, browser, operating system): node: v14.17.0, chrome: 92.0.4515.159
How to reproduce these conditions
Failing test unit, Stackblitz demonstrating the problem
i could't get angularfire 7 running in stackblitz, sorry.
Steps to set up and reproduce
Debug output
The function is called from the default region even though I specified a region
Expected behavior
The function should be called with the region 'europe-west1'
Actual behavior
The function is called with the default region 'us-central1'
I think the provided region for cloud functions is ignored.
The text was updated successfully, but these errors were encountered: