Skip to content
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

Support Firebase functions v2 (2nd Gen) as a deploy target. #1141

Closed
1 task done
JamieCurnow opened this issue Apr 14, 2023 · 2 comments · Fixed by #1500
Closed
1 task done

Support Firebase functions v2 (2nd Gen) as a deploy target. #1141

JamieCurnow opened this issue Apr 14, 2023 · 2 comments · Fixed by #1500
Assignees
Labels
enhancement New feature or request preset:firebase

Comments

@JamieCurnow
Copy link
Contributor

Describe the feature

Almost exactly the same as the current firebase preset, but make the generated cloud function a 2nd gen function and expose some config to set region, min/max instances etc.

The cloud functions v2 are in beta at the moment and the documentation is here:
https://firebase.google.com/docs/functions/beta

Though Google claim that they are in GA here:
https://cloud.google.com/blog/products/serverless/cloud-functions-2nd-generation-now-generally-available

Proposal is a new preset firebaseV2 that will extend the current firebase preset, but just use a different import to take advantage of the new features of firebase functions v2.

There has been a few issues #1098 #666 that express a valid requirement for configuring cloud functions, so this feature also includes an easy way to inject options into the cloud function call through the nirto runtime config. This allows the developer to control all options of the firebase function such as region, min/max instances etc.

The options are detailed here:
https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.https.httpsoptions

Additional information

  • Would you be willing to help implement this feature?
@JamieCurnow
Copy link
Contributor Author

PR incoming...

@mcfarljw
Copy link

I think Cloud Functions v2 has been moved out of beta. I'm looking to take advantage of the improved concurrency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request preset:firebase
Projects
None yet
3 participants