Cloudflare Pages
The DefendableCloud site, app (Vault), and docs deploy to Cloudflare Pages. The API does not — it runs on Fly.io.
Build configuration
Section titled “Build configuration”NODE_VERSION=22(matches CI’s22.12.0).- Build command:
npm run build. - The app and site each build from their own directory (
app/,site/) in thedefendable-cloud-v2monorepo. - CI runs
npm audit --audit-level=lowbefore the build for both projects.
Output directories
Section titled “Output directories”Confirm the output dir against each project’s build config rather than assuming:
- site (
site/) — Astro,output: "static"→ emitsdist/. - app (
app/) — Vite React SPA,build.outDir: "dist"→ emitsdist/.
Domains and SSL
Section titled “Domains and SSL”Custom domains are added in the Cloudflare Pages UI. SSL auto-provisions in roughly 10 minutes after the domain is attached.
🐝 Operator-grade · books and records · to the shed.