Skip to content

provided region for cloud functions is ignored #2909

Closed
@YannicEl

Description

@YannicEl

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

  1. Setup a angualrfire 7 project
  2. use the provideFunctions method in the app.module.ts
  3. specify a region in the getFunctions function
@NgModule({
  ...
  imports: [
    provideFirebaseApp(() => initializeApp(environment.firebase)),
    provideFunctions(() => getFunctions(getApp(), 'europe-west1')),
  ],
  ...
})

Debug output

image
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions