DevOps

Deploy a Static Site to Cloudflare Pages in 60 Seconds

February 2026 · 3 min read

Static sites don't need complex deployment pipelines. No Docker containers. No CI/CD YAML files. No server management. Just git push and you're live.

The Problem

Most hosting is overkill. WordPress for a landing page that changes twice a year. A VPS for a blog with 100 monthly visitors. $20/month for infrastructure that sits idle 99% of the time.

Even "simple" deployment platforms require configuration: build commands, environment variables, output directories. You spend more time debugging deployment than building the site.

The Solution

Cloudflare Pages. Free tier includes SSL, global CDN, and unlimited bandwidth. Deploy with one command. No build configuration needed for pure HTML/CSS/JS sites.

How It Works

Three commands from your site directory:

# Install Wrangler CLI (Cloudflare's deployment tool)
npm install -g wrangler

# Deploy current directory to Cloudflare Pages
npx wrangler pages deploy . --project-name=mysite --branch=main

# Verify deployment
curl https://mysite.pages.dev

The deploy command pushes all files to Cloudflare's edge network. No Git integration required—direct upload from your local directory. Site goes live at project-name.pages.dev immediately.

For custom domains, add a CNAME record pointing to project-name.pages.dev. SSL provisions automatically via Let's Encrypt.

Results

60
Seconds deploy time
$0
Cost (free tier)
200+
Edge locations

Key Lessons

  • Static sites scale infinitely. No database queries, no server-side processing. Cloudflare's CDN handles millions of requests without breaking a sweat.
  • Cloudflare CDN beats AWS/Azure for speed. 200+ edge locations vs. AWS CloudFront's 400+, but Cloudflare's network is purpose-built for low latency. Most users see sub-50ms response times.
  • No build step means no build failures. Pure HTML/CSS/JS sites deploy every time. No npm dependency hell, no webpack version conflicts, no mysterious build errors at 3am.

Download: Cloudflare Pages Deployment Checklist

Step-by-step guide to deploying static sites. Includes custom domain setup, rollback commands, and troubleshooting.

Related Service

DevOps & Infrastructure

I help teams simplify deployment and cut hosting costs. From VPS migration to Cloudflare Workers, serverless functions, and edge computing. Get fast, reliable infrastructure without the complexity.

Learn more →

Related Posts

Multi-Tenant Slack Bot: One App, Three Workspaces

Config-driven architecture for serving multiple clients with one codebase.

98% Cost Reduction: Optimizing AI API Calls

Two changes cut AI API costs from $100/month to $2/month.

Evgeny Goncharov - Founder of TechConcepts, ex-Yandex, ex-EY, Darden MBA

Evgeny Goncharov

Founder, TechConcepts

I build automation tools and custom software for businesses. Previously at Yandex (Search) and EY (Advisory). Darden MBA. Based in Madrid.

About me LinkedIn GitHub
← All blog posts

Need help with deployment and infrastructure?

15 minutes. No pitch. Just honest advice on whether I can help.

Book a Call