16
votes

I have a http triggered cloud function deployed in the europe-west1 region and a web app hosted with firebase hosting. I have also setup a rewrite to that http function in my firebase.json file.

I have noticed that the rewrite only works with us-central1 functions.

Is there a way to make the rewrite work with europe-west1 functions?

2
I have noticed the same problem. Could you figure it out in the meantime? - Martin Reiche
Now that there is official support for other regions it states in the docs that "If you are using HTTP functions to serve dynamic content for hosting, you must use us-central1". So i think we have to wait and see if they will change that. - dergoegge
Ah, thanks for pointing that out. I must be blind ;) - Martin Reiche
That sounds like an answer @dergoegge! :) - Frank van Puffelen

2 Answers

4
votes

Now that there is official support for other regions it states in the docs that "If you are using HTTP functions to serve dynamic content for hosting, you must use us-central1". So i think we have to wait and see if they will change that.

0
votes

As of 2021, Hosting rewrites to functions work for us-central1 region only

Firebase Hosting supports Cloud Functions in us-entral1 only