| name | cloudflare-pages-deploy-patterns |
| description | Use when deploying to Cloudflare Pages. Pages is the editorial-friendly hosting choice — static-first, instant global edge.
|
Cloudflare Pages Deploy Patterns
Cloudflare Pages = static-first, global edge, free tier. Build with Astro, Next.js export, or plain HTML. Deploy via git push or wrangler.
Pages deployment options
- Git integration (auto-deploy on push)
- Wrangler CLI (manual:
wrangler pages deploy ./dist)
- Cloudflare API (programmatic)
- CI/CD pipeline (GitHub Actions, etc.)
Optimal stack for editorial sites
- Static HTML or Astro (no React unless interactivity needed)
- Tailwind CSS or vanilla CSS
- Bunny Fonts (edge-cached, GDPR-safe vs Google Fonts)
- R2 for image assets
- KV for dynamic data
- Workers for serverless functions
- Optional Workers AI for image gen
Deploy command pattern
npm run build
npx wrangler pages deploy ./dist --project-name=cardprepai --branch=main
git push origin main
Where this fits in the X3 empire
Deployment standard across all CardPrepAI marketing surfaces.