Cloudflare Pages logo

Cloudflare Pages

Cloudflare · 🌐 Static Hosting

Cloudflare Pages is a JAMstack platform for frontend developers to collaborate and deploy websites on Cloudflare's global edge network.

Category
Static Hosting
Free tier
Available
Paid from
$20/month
Verified
2024-01-15

Overview

Cloudflare Pages builds your Git repository and serves the output from Cloudflare’s global edge network of 300+ cities. It is tightly integrated with Cloudflare Workers, so a static front end and serverless edge functions can live behind the same domain β€” with none of the cold-start penalty you get on traditional serverless platforms.

The free tier is unusually generous for static hosting: bandwidth and requests are unlimited, you get 500 builds per month, and you can host unlimited sites and custom domains with free SSL. Dynamic logic runs on the Workers free allocation, and you can attach KV, D1 (SQLite) and R2 (object storage) bindings directly to your project.

It is a natural fit for static and hybrid frameworks like Astro, Next.js, SvelteKit and Remix β€” especially when you want edge rendering, data bindings, or simply prefer to keep everything inside the Cloudflare ecosystem. Free-tier limits change periodically, so always confirm the current numbers on the provider’s site before relying on them.

Pros

  • βœ“Unlimited bandwidth and requests on the free plan
  • βœ“Global edge delivery from 300+ cities with free SSL
  • βœ“Deep Workers integration β€” edge functions plus KV, D1 and R2 bindings
  • βœ“Unlimited sites and custom domains
  • βœ“Fast Git-based preview deployments

Cons

  • βœ•500 builds per month cap on the free plan
  • βœ•Build system is younger than Vercel's or Netlify's for some frameworks
  • βœ•Advanced Workers features carry their own usage limits
  • βœ•Edge-only β€” not for long-running stateful servers

Best for

  • β†’Static sites and JAMstack apps (Astro, Next.js, SvelteKit)
  • β†’Projects that want edge functions close to users
  • β†’Teams already using Cloudflare DNS, Workers or R2

Getting started

  1. 1 Push your project to a GitHub or GitLab repository
  2. 2 In the Cloudflare dashboard, create a Pages project and connect the repo
  3. 3 Pick a framework preset and set the build command and output directory
  4. 4 Deploy β€” every push builds a preview, and main publishes to production
  5. 5 Optionally add a custom domain and Workers bindings (KV, D1, R2)

Features

  • βœ“Unlimited bandwidth
  • βœ“Global CDN
  • βœ“Workers Integration
  • βœ“Preview Deployments
  • βœ“Git Integration
  • βœ“Custom Domains

Frameworks

ReactVueSvelteAstroNext.jsNuxt

FAQ

Is Cloudflare Pages really free?

Yes. The free plan includes unlimited bandwidth and requests, 500 builds per month and unlimited sites; functions use the Workers free allowance. Limits change over time, so confirm the current numbers on Cloudflare's site.

Can I run server-side code?

Yes, through Pages Functions, which run on Cloudflare Workers at the edge. They suit APIs and server rendering rather than stateful, long-lived processes.

How is Pages different from Workers?

Pages builds and hosts your front end with optional Functions; Workers is the underlying serverless runtime. Pages Functions are Workers under the hood.

Deploy these projects to Cloudflare Pages

Open-source projects and templates that run on Cloudflare Pages's free tier.