Bring back a Firebase Hosting + Cloud Functions (2nd gen) preset in v3: we would maintain it
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- firebase, typescript
Direzione di ricerca
Start by reading the v3 preset and migration changes in PR #3215, then check how the existing firebase_app_hosting preset wraps and configures its handler. The proposed scope is a separate preset for Firebase Hosting with a 2nd-gen Cloud Function, using onRequest and the user's httpsOptions; the report offers to add the implementation, docs and tests. Confirm maintainers accept the preset and its name before treating the design as settled.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the feature
Nitro 3 removed the firebase preset (Firebase Hosting in front of a Cloud Function) in #3215 in favour of firebase_app_hosting. The merge comment said it was "on outdated versions and not actively maintained", and that it could come back on user request. This is that request, with an offer to do the work.
Who is asking. We run 16 production Nuxt sites on the classic setup: Firebase Hosting with a rewrite to one 2nd-gen function built by preset: 'firebase' with firebase.gen: 2. We also run two sites on App Hosting, so we know both sides.
Why App Hosting does not replace it for us yet.
- Region: 2nd-gen functions run in
europe-west6(Zürich), which our Swiss clients ask for. App Hosting's only European region iseurope-west4. - Deploys: one
firebase deployships hosting, function, Firestore rules and indexes together in a fixed order. On App Hosting the app rollout and the rules deploy are two separate steps that we have to sequence ourselves. - The Hosting edge: header rules, redirects, the CDN cache for static files and rewrites to other functions (Python, in our case) all live in
firebase.json. - Classic Hosting and 2nd-gen functions are both supported Firebase products with no announced end.
What we propose. A slim preset for Nitro 3, 2nd gen only:
- no 1st-gen code path and no
firebase.genswitch; - current
firebase-functionsandfirebase-adminversions, current Node runtimes; - the entry wraps the Nitro handler in
onRequestwith the user'shttpsOptions; - named so it is clear what it is (for example
firebase_functions), withfirebasestaying mapped to App Hosting as the migration guide says.
What we offer. We would write the PR, the docs page and the tests, and stay on as maintainers of the preset: triage its issues and keep it working with new firebase-functions, firebase-tools and Node releases. We deploy with it regularly, so breakage shows up for us first.
Questions.
- Would you accept such a preset back into Nitro 3?
- If not in core, is an external preset package the way you would recommend, and is the preset API stable enough in v3 to build on?
Additional information
- Would you be willing to help implement this feature?
- Lingua principale
- TypeScript
- Stelle
- 11.5k
- Fork
- 968
- Merge medio
- 4g 9h
- PR unite (30g)
- 64
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nitrojs/nitro
-
pending triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 2 giorni
-
cloudflare: `nitro deploy` fails when a parent directory has a Wrangler configForse già presa @draarivpatel-ui l’ha presa 13 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 2 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
pending triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
nitrojs/nitro#5205 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di nitrojs/nitro
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
amosblomqvist/learnharness#1141 ·
I maintainer di solito rispondono entro 4 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ranxianglei/billion-context#8319 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
tencent-connect/dsh-qqbot#148 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
JimLiu/open-artifact#126 ·
-
redis.expireTime() returns relative TTL seconds on live host instead of Unix timestamp secondsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100