I have firebase hosting and functions in the same project, where the hosting rewrites certain url requests to the function. It has been working well.
But after changing the region from us-central1
to another region on the function, I am getting this error whenever I go to http://localhost:5000/getoptions
Function us-central1-app does not exist, valid triggers are: europe-west1-app
here is my rewrite code in firebase.json.
"rewrites": [
{
"source": "**",
"function": "app"
}
]
"rewrites": [
{
"source": "**",
"function": "app"
}
]
why isn't it showing the error? is there a way to specify redirect region too?