Add wrangler
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user