Deploying a Static Site to Cloudflare Pages

Cloudflare Pages is a fantastic home for static and hybrid sites — generous free tier, fast global edge, and a painless workflow.

Two ways to deploy

  • Git integration — connect your repo and every push builds and deploys automatically.
  • Wrangler CLIwrangler pages deploy dist for manual or scripted deploys.

Tips

  • Pin your Node version with NODE_VERSION.
  • Use a custom domain for clean URLs and automatic SSL.
  • Preview deployments per pull request make reviews painless.

This very site runs on Cloudflare Pages.