Home / Post

Building a Zero-Cost Blog with Astro, Sveltia CMS & Cloudflare Pages

How I built a fully-managed tech blog for $0/month with auto WebP conversion, a Git-based CMS, and global CDN delivery.

Building a Zero-Cost Blog with Astro, Sveltia CMS & Cloudflare Pages

Why This Stack?

I wanted a blog for technical docs and images with these constraints:

  • $0/month — no VPS, no database, no hosting fees
  • Markdown — all content in portable .md files
  • WebP images — auto-converted for performance
  • CMS — edit from any browser, no local tooling needed after setup
  • Global CDN — fast everywhere via Cloudflare

The Architecture

GitHub Repo (storage + CMS backend)
├── content/posts/       ← Markdown technical docs
├── content/images/      ← WebP images (auto-converted)
├── public/admin/        ← Sveltia CMS (one HTML file)
└── src/                 ← Astro site source


Cloudflare Pages (build + CDN)


    yourdomain.com