How I Migrated My Website to Cloudflare and Saved $228

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A step-by-step account of migrating a static website from Netlify to Cloudflare Pages, eliminating a $19/month hosting bill with zero downtime. The approach uses a dual-deploy CI strategy: both hosts receive the same build simultaneously, allowing the new Cloudflare Pages copy to be verified before a single DNS record flip completes the cutover. Key steps covered include inventorying DNS records before moving nameservers, handling redirects via a _redirects file, and maintaining a rollback path throughout. A bonus section covers using Cloudflare R2 for free nightly Postgres database backups with rclone, taking advantage of R2's zero egress fees.

8m read timeFrom milanjovanovic.tech
Post cover image
Table of contents
What $19 a Month Was BuyingThe PlanStep 1: One Build, Two HostsStep 2: Move DNS Without Moving the WebsiteStep 3: The CutoverThe One Thing That BrokeWhat the Free Tier Gets YouSidenote: R2 for Database BackupsSummary
56.7K Impressions2 Comments