Decouple Directus from project

This commit is contained in:
2026-06-21 09:33:54 -04:00
parent 31a8a43225
commit 9b7b5401b0
12 changed files with 83 additions and 877 deletions
+2
View File
@@ -19,6 +19,8 @@ Production-ready airfield website stack built with Astro, Directus, PostgreSQL,
- All deploy-time variables live in `.env`.
- `PUBLIC_PPR_API_BASE` controls the browser-side PPR API base URL; PPR and drone request endpoints are derived from it at build/dev-server startup.
- `DIRECTUS_TOKEN` is the preferred read-only token for Astro content builds; `DIRECTUS_ADMIN_TOKEN` is still used by Directus/bootstrap setup.
- `DIRECTUS_DEBUG=true` makes Astro log Directus fetch/fallback reasons during builds.
- `DIRECTUS_HOMEPAGE_BANNER_FOLDER` names the Directus file folder used for rotating homepage banner images. If the folder is missing or empty, the site falls back to `/images/banner.png`.
- 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.