-
Notifications
You must be signed in to change notification settings - Fork 970
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
Feature request: specify the region for the SSR function in Web Frameworks #5154
Comments
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information. |
Support for setting a region other than us-central1 is coming. I do not suspect it will be automatic because Cloud Functions for Firebase already has the existing behavior of defaulting to us-central1 and it will likely have unforeseen consequences to default just the SSR function to the AppEngine region. |
Is there any way to manually work around this in the meantime? |
Would definitely appreciate this. Doesn't have to be automatic, just a field in firebase.json would be great. |
Yes that would be great indeed! |
Agreed. A much-needed feature! |
found the culprit: firebase-tools/src/frameworks/index.ts Lines 482 to 483 in abcaaab
seems like this feature is planned for sometime in the future |
I was able to change the region in the Had to do it because I don't want to pay for another vpc serverless in us-central1 since I already have one in another region. I could just reuse that for the ssr function. Quite a hacky solution but works well for me. |
Will be addressed once d6826ee is out the door in the next CLI release. |
@jamesdaniels i'm deploying next js app with the following
UPDATE: The following worked
|
Why are the regions locked to Hoping to use Next.js SSR in |
@jalexw I asked the same thing here. It's becasue Cloud Functions V2 are only available in those regions. |
Cloud Functions Locations tells something else. There are many more on the list. Probably the limitation is just Firebase related? |
I'd also like to know what's the current situation, if it's already possible to use other regions. |
[REQUIRED] Environment info
firebase-tools: 11.15.0
Platform: Ubuntu
[REQUIRED] Test case
(omitted)
[REQUIRED] Steps to reproduce
I added a NextJS project to an existing Firebase project with a Default GCP resource location in europe-west3, then enabled the
webframeworks
experiment, and tried to deploy the project.[REQUIRED] Expected behavior
The CLI should create a cloud function to process SSR for NextJS. This cloud function should be created in the default GCP resource location, in this case europe-west3
[REQUIRED] Actual behavior
The SSR cloud function is deployed to us-central1, and the deployment fails:
The text was updated successfully, but these errors were encountered: