Skip to content

ADR-0003 Cloudflare Pages Target

Accepted

Both applications are static Astro sites. We require a hosting platform that supports static assets, preview environments, and future Access controls without managing infrastructure.

  • Deploy apps/site and apps/docs to separate Cloudflare Pages projects.
  • Delay Workers and more complex edge runtime usage until clear requirements emerge.
  • Pages offers automatic previews, CDN distribution, and simple configuration.
  • Separate projects allow independent access policies (public vs internal).
  • Avoids premature investment in custom infrastructure.
  • Dynamic features (forms, personalization) remain out of scope until a Worker BFF is introduced.
  • Release workflow relies on manual promotion until CI/CD is established.
  • Security headers must be managed within Cloudflare settings.
  • Introducing Cloudflare Workers for dynamic endpoints or authenticated APIs.
  • Implementing CI/CD pipelines that trigger Pages deployments automatically.
  • Aligning Cloudflare Access groups with corporate SSO.
  1. Create two Pages projects: marketing (root domain) and internal docs (subdomain).
  2. Configure build commands and output directories per the Cloudflare Pages runbook.
  3. Document DNS and Access policies prior to launch.
  • Successful manual builds: pnpm build:site and pnpm build:docs inside Docker.
  • Pages preview deployments render correctly for both applications.
  • Access controls confirmed for the docs project before production promotion.