Cloudflare Pages
What is it?
Cloudflare Pages is a platform for deploying and hosting websites and web applications. It integrates with Git (GitHub, GitLab) so that every time you push code, your site is automatically built and deployed globally on Cloudflare's network. It supports static sites, JAMstack applications, and full-stack apps (via Workers integration).
Fun fact: This onboarding portal is hosted on Cloudflare Pages!
What problem does it solve?
- Deployment complexity: Traditional hosting requires setting up servers, configuring CI/CD, managing SSL certificates, and scaling infrastructure. Pages handles all of this automatically.
- Preview deployments: When working in teams, you want to preview changes before they go live. Pages creates a unique preview URL for every pull request — so reviewers can see changes before merging.
- Global performance: Static sites hosted on a single server are slow for users far away. Pages deploys to Cloudflare's global network, ensuring fast loads everywhere.
- Full-stack capability: Pages isn't just for static sites — with Pages Functions (powered by Workers), you can add server-side logic, API routes, and database connections.
How does it work?
- Connect a Git repository (GitHub or GitLab) to Pages.
- Configure a build command and output directory (e.g.,
npm run build→dist/). - Every push to the main branch triggers a production deployment.
- Every push to a feature branch or PR creates a preview deployment with a unique URL.
- Pages serves the built files from Cloudflare's global CDN.
- Pages Functions let you add server-side code in a
/functionsdirectory — these run as Workers.
Supports all major frameworks: Astro, Next.js, React, Vue, Svelte, Hugo, and more.
Key features:
- Automatic SSL: HTTPS out of the box.
- Custom domains: Point your own domain to your Pages project.
- Rollbacks: Instantly revert to any previous deployment.
- Build caching: Faster builds by caching dependencies.
Why it matters strategically
Pages is Cloudflare's competitor to Vercel, Netlify, and GitHub Pages. It's an important acquisition channel for the developer platform — developers who start with Pages for hosting often discover Workers, D1, and R2 as they build more complex applications. Pages makes the developer platform approachable, with a low barrier to entry (free tier, simple Git integration).