Migrating from Netlify to Cloudflare Pages
I moved all my Astro sites off Netlify and onto Cloudflare Pages. The main driver was consistency - I already use Cloudflare for DNS and Workers, so having the static hosting in the same ecosystem simplifies things.
What changed
The Astro adapter swap was straightforward. Replace @astrojs/netlify with @astrojs/cloudflare, update the config, and handle a few SSR environment variable differences. Cloudflare Pages uses env bindings instead of process.env for server-side code.
What I gained
Build times dropped noticeably. Cloudflare’s build infrastructure feels faster, and the global edge network means my sites are served from wherever the reader is. The free tier is generous enough that I’ll probably never pay for hosting.
The integration with Cloudflare Workers means I can add server-side logic without spinning up a separate service. For the API-backed pages on my blog, this is exactly what I needed.