Cloudflare Pages
The Postgram website is a static Astro + Starlight site.
It is built from npm run build and deployed to Cloudflare Pages for production.
Pull request flow
Section titled “Pull request flow”For every pull request to main (opened, synchronize, or reopened), CI runs:
npm cinpm run build
Only the static build is executed in PR checks.
Main push flow
Section titled “Main push flow”When commits land on main, the website runs the same build and then deploys directly with:
wrangler pages deploy dist --project-name postgram-websiteRequired GitHub secrets
Section titled “Required GitHub secrets”CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
Production domains
Section titled “Production domains”Cloudflare Pages is configured for:
postgram.devwww.postgram.dev
When attaching Pages custom domains, preserve existing DNS records for mail forwarding:
- MX records
- SPF TXT record