firebase-framework-tools icon indicating copy to clipboard operation
firebase-framework-tools copied to clipboard

Auto-generated Cloud Function cannot be configured

Open ErikWittern opened this issue 3 years ago • 5 comments

The Cloud Function being created for server-side rendering (of a Next.js app in my case) seems to be deployed to region us-central1 by default, and seems to have 256 MB of memory allocated.

Is it possible to configure these aspects?

ErikWittern avatar May 12 '22 14:05 ErikWittern

🙋🏻‍♂️

abMarlim avatar May 12 '22 15:05 abMarlim

At the the moment we don’t allow any configuration of the cloud function. We’re thinking through what that would look like. E.g, a yaml file, command line args, etc.

Thanks for the feedback

jamesdaniels avatar May 12 '22 15:05 jamesdaniels

As a work around, you can alter the settings of the auto-generated cloud function in the Google Cloud Console.

jamesdaniels avatar May 12 '22 16:05 jamesdaniels

As a work around, you can alter the settings of the auto-generated cloud function in the Google Cloud Console.

can you point where to change the settings for the region ? it seems that we could only change the memory after the function created

marendra avatar May 26 '22 16:05 marendra

I thought changing the region isn't possible as documented on firebase docs?

Important: If you are using HTTP functions to serve dynamic content for Firebase Hosting, you must use us-central1.

aabccd021 avatar May 31 '22 23:05 aabccd021