Hosting • Cloudflare Pages

Deploy a Static HTML Website on Cloudflare Pages with Custom Domain

The fastest and cheapest way to host your static site globally. Zero cost for most projects.

Updated July 2026
10 min read

Why Cloudflare Pages?

Step-by-Step Deployment

1

Prepare Your Static Site

Make sure your project has an index.html file in the root or a public / dist folder.

my-static-site/
├── index.html
├── about.html
└── assets/
2

Deploy Using Wrangler (CLI)

Install Wrangler:

npm install -g wrangler

Login to Cloudflare:

wrangler login

Deploy the site:

wrangler pages deploy ./
# or specify directory
wrangler pages deploy dist/
3

Register a Domain (Optional)

  1. Go to Cloudflare Dashboard
  2. Click Register Domain
  3. Search and purchase your domain (privacy included)
  4. Cloudflare automatically sets it up as your DNS provider
4

Add Custom Domain to Your Pages Project

  1. Go to Pages → Your Project in the dashboard
  2. Click Custom domains
  3. Click Add domain
  4. Enter your domain (e.g. example.com) and follow the prompts
  5. Cloudflare will verify ownership and issue a free SSL certificate
Pro Tip: You can also connect an existing workers.dev subdomain to your custom domain.

Need Help?

Stuck? Get Personalized Help

Reach out to Ryan for expert guidance on your deployment or custom project.

Email Ryan@diyregistry.com

Or visit diyregistry.com for more inspiration, templates, and ready-made solutions.

Your site is now live!

Enjoy instant global performance, DDoS protection, and free HTTPS.

Go to Cloudflare Dashboard →