Corregge il deploy Cloudflare usando il config generato da Astro

Aggiunge lo script deploy:cf con build + wrangler deploy su dist/server/wrangler.json e documenta il setup consigliato per evitare l'errore di entrypoint mancante.

Made-with: Cursor
This commit is contained in:
Javaxman
2026-04-23 17:05:41 +02:00
parent 768586bdc5
commit 1cd779b3c7
2 changed files with 10 additions and 0 deletions

View File

@ -41,3 +41,12 @@ All commands are run from the root of the project, from a terminal:
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
## Cloudflare deploy notes
If you deploy with Wrangler in CI/Cloudflare, build first and deploy using Astro's generated Worker config:
- Build command: `npm run build`
- Deploy command: `npm run deploy:cf`
This avoids entrypoint errors like `@astrojs/cloudflare/entrypoints/server` not found.