Building with Astro and Cloudflare
6/6/2026
AstroCloudflareWeb Development
Astro is a powerful static site generator that pairs perfectly with Cloudflare's edge network. In this post, I'll walk through how I set up my portfolio using these tools.
Why Astro?
Astro delivers lightning-fast performance by shipping zero JavaScript by default. Combined with Cloudflare's global network, the result is a site that loads instantly anywhere in the world.
Deployment Strategy
I chose the server-side rendering mode with the @astrojs/cloudflare adapter. This gives me the flexibility to handle dynamic routes like blog posts and the contact form while still getting excellent performance.
The entire site is deployed to Cloudflare Pages, with D1 for the contact form database and Sanity CMS for blog content management.