myclubapp / backend

Backend for my-club App
https://my-club.ap
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Firebase Function GEN 2 #60

Open sansan88 opened 3 weeks ago

sansan88 commented 3 weeks ago

Hello Sandro, Since Cloud Functions for Firebase is built on Google Cloud Functions, we’re writing to let you know about some changes that are being made to the Google Cloud Functions.

What you need to know Starting September 1, 2024, future versions of the gcloud functions deploy CLI command will create Cloud Functions using 2nd generation by default. If you do not wish to create a 2nd generation function, you can override this behavior by using the --no-gen2 CLI flag.

Additionally, the firebase-functions Node.js SDK will begin defaulting to the v2 API instead of the v1 API. The v2 API is available now at firebase-functions/v2.

Cloud Functions for Firebase has two product versions:

Cloud Functions (1st generation), the original version, used whenever targeting the firebase-functions/v1 SDK. Cloud Functions (2nd generation), a new version built on Cloud Run and Eventarc providing an enhanced feature set, which has been generally available since 2022. This is used whenever you need to target the firebase-functions/v2 SDK. You can learn more about the benefits of Cloud Functions for Firebase (2nd generation) in the Cloud Functions version comparison documentation.

What you need to do If you are unable to upgrade at this time, change your import from firebase-functions to firebase-functions/v1 to preserve your existing codebase.

If you automate the creation of new Cloud Functions for Firebase evaluate the differences between generations when creating 2nd generation functions to avoid any issues.

If you conclude that you need to create functions in 1st generation, update your imports from firebase-functions to firebase-functions/v1 before September 1, 2024.

We’re here to help We know this change may take some planning, and we're committed to supporting you during this transition. If you have any questions or require assistance, please contact Google Cloud support.

Your projects with created or updated functions (last 90 days) are below:

starthub-schaffhausen-dev (starthub-schaffhausen-dev) ecollect eur3 (e-collect) myclub (myclubmanagement) unihockeyclub (project-3992371560529509008) owlly (project-owlly) Thanks for choosing Cloud Functions for Firebase.

—The Firebase Team