Generates `wrangler.jsonc` when `preset: 'cloudflare_module', static: true`

Aperta
#5,157 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
devops

Direzione di ricerca

Start by tracing how the cloudflare_module preset handles static builds and emits its deployment instructions; the issue does not name specific files or tests. Check how generated deployment configuration is covered for other Cloudflare presets, then determine whether static builds can emit the proposed wrangler.jsonc and 404-page setting. Done means the generated configuration supports wrangler deploy and the change has coverage for this build mode.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

pending triage
Describe the feature

(via Nuxt v4.6.3)

export default defineNuxtConfig({
  compatibilityDate: '2026-11-14',
  nitro: {
    preset: 'cloudflare_module',
    static: true,
  },
});

nuxt build generates full static site with log:

✔ You can preview this build using npx wrangler dev .output/server/index.mjs --assets .output/public
✔ You can deploy this build using npx wrangler deploy .output/server/index.mjs --assets .output/public

Maybe it's better to generate wrangler.jsonc, then we can use normal wrangler deploy:

{
  "name": "make-vote",
  "compatibility_date": "2026-11-14",
  "assets": {
    "directory": "./.output/public",
    "not_found_handling": "404-page"
  }
}

Also, "not_found_handling": "404-page" can elimate the need of 404.html to reduce artifact size.

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

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nitrojs/nitro

Tutte le issue di nitrojs/nitro

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.