Architecture overview
- Frontend: Astro 7 + TypeScript, static output, near-zero JS. Design tokens
are the single source of truth (
packages/ui), shared with Figma Variables. - Content: git-based typed collections (MDX + Zod) — no CMS database.
- Edge: Cloudflare only — a single Worker with Static Assets serves the prerendered site globally (R2 media, Images, WAF, Turnstile, Web Analytics, DNS), and the same Worker handles the same-origin form endpoints.
- Data tier: Cloudflare D1 (SQLite at the edge), written by same-origin
Worker API routes (
/api/contact,/api/careers) for contact/careers leads — no separate API service, no cross-origin CORS. - IaC: Terraform (single Cloudflare provider — zone, D1, R2, Turnstile,
WAF/cache); the Worker is published by
wrangler deploy. CI/CD: GitHub Actions (provision then deploy).
See the full ADRs in the monorepo under docs/adr/.