Add wrangler

This commit is contained in:
2026-06-21 05:04:26 -04:00
parent 4498fa2611
commit ed7597f879
8 changed files with 2153 additions and 5 deletions
+23
View File
@@ -23,6 +23,29 @@ Production-ready airfield website stack built with Astro, Directus, PostgreSQL,
- The frontend service bind-mounts the project into `/app`, keeps `node_modules` and `.astro` in named volumes, and serves the site with `astro dev` on the published frontend port.
- Layout and page structure are controlled entirely by Astro.
- Frontend source edits should appear without rebuilding the container image.
- Cloudflare Pages deployment uses Direct Upload with Wrangler. See `docs/cloudflare-pages.md` for the test/prod URL workflow.
## Cloudflare Pages deployment
Build static files with the test URL set:
```bash
npm run build:pages:test
```
Deploy the test build to the Cloudflare Pages `test` branch:
```bash
npm run deploy:pages:test
```
Deploy production with the production URL set:
```bash
npm run deploy:pages:prod
```
Copy `.env.pages.test.example` and `.env.pages.prod.example` before using these commands.
## Programmatic Directus schema bootstrap