I am testing the new region settings for Firebase cloud functions something is not right (I may be doing something wrong).
Since our users are in europe i wanted to move all my project and my functions to europe. Https functions are working as expected, just setting this:
export const test = region('europe-west1').https.onRequest(....)
On the other hand, I am having troubles with the firebase triggers. While this function works fine:
export const firebaseUpdateTrigger = region('us-central1')
.firestore
.document(...)
.onUpdate(...)
The same code just like this does not get triggered:
export const firebaseUpdateTrigger = region('europe-west1')
.firestore
.document(...)
.onUpdate(...)
What is it that I am doing wrong??
I am using these versions:
"firebase-functions": "2.0.4",
"firebase-admin": "5.13.1",
"@google-cloud/firestore": "^0.15.0"

region()is a method offunctionsthat you import fromfirebase-functions, but it appears like you're just calling it like a regular function, which it is not. firebase.google.com/docs/functions/locations - Doug Stevenson