Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

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.

For every pull request to main (opened, synchronize, or reopened), CI runs:

  1. npm ci
  2. npm run build

Only the static build is executed in PR checks.

When commits land on main, the website runs the same build and then deploys directly with:

Terminal window
wrangler pages deploy dist --project-name postgram-website
  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ACCOUNT_ID

Cloudflare Pages is configured for:

  • postgram.dev
  • www.postgram.dev

When attaching Pages custom domains, preserve existing DNS records for mail forwarding:

  • MX records
  • SPF TXT record