This guide explains how to build, deploy, and operate a full site on Cloudflare’s free offerings that do not expire. Use it as a hands-on textbook: every section ties back to a live example on this site.

Cloudflare Pages: static sites

Pages Functions: serverless on the edge

Pages Functions run Cloudflare Workers next to your static site.

DNS and CDN (Free)

Security on Free

Workers Free plan

Pages Functions are powered by Workers. The free plan is generous for learning and prototypes.

Quota details change over time; consult Cloudflare docs for current limits and pricing.

Data services often used with free setups

Many of these are pay-as-you-go with generous free allowances. Bindings can be added to Pages Functions for seamless access.

Analytics and Email (Free)

Zero Trust (Free plan)

Secure access to internal apps, tunnels, and SaaS with the Zero Trust free plan (suitable for individuals and small teams). Protect admin interfaces, add identity providers, and enforce device/browser checks.

Automation: edit and deploy with one command

  1. Edit files in this repo (e.g., update /index.html).
  2. Set environment variables: CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN, CF_PAGES_PROJECT.
  3. Run npm run deploy. This uses direct upload and requires no prompts.
  4. Optional: set CF_PAGES_BRANCH for preview deployments.

Alternatively, connect GitHub and use the included action to auto-deploy on push or pull request.

Reference architecture on Free

Practical checklist

Note: Capabilities and quotas evolve. For precise, current limits and pricing, consult the official Cloudflare documentation.

← Back to demo