Zero-Cost Web Hosting with Cloudflare Pages

# Zero-Cost Web Hosting with Cloudflare Pages Cloudflare Pages gives you free hosting with a global CDN, automatic HTTPS, and unlimited bandwidth on the free tier. Perfect for static sites generated by a CMS. ## The NoStackApps Publish Pipeline Our CMS publishes to Cloudflare Pages automatically: 1. **Edit content** in the CMS admin (Vue SPA) 2. **Click Publish** — sends request to a Cloudflare Worker 3. **Worker fetches** all CMS data from the Google Sheets backend 4. **Renders HTML** in-memory (no filesystem needed) 5. **Deploys** via the CF Pages Direct Upload API 6. **Site is live** on the global CDN within seconds ## Why Not GitHub Pages? GitHub Pages is great too, but Cloudflare Pages offers: - **Unlimited bandwidth** (GitHub caps at 100GB/month) - **Workers integration** — run serverless functions at the edge - **Preview deployments** — every branch gets its own URL - **Faster builds** — no Git push needed, direct upload via API ## The Direct Upload API Instead of pushing to a Git repo and waiting for a build, we upload files directly: ```javascript // 1. Hash files (blake3) // 2. Check which hashes CF doesn't have // 3. Upload missing files // 4. Create deployment with manifest ``` The entire publish takes 2-5 seconds for a typical blog.