Use when it fits · Astro (open source, MIT), part of Cloudflare since January 2026 · Server-rendered content sites

Astro on Cloudflare Workers

The framework I'd pick for content sites that need server rendering. Static by default, server-rendered where a page needs it, and owned by Cloudflare, so Workers is its home.

For a content site that needs a little server rendering, I'd reach for Astro before Next.js. Pages are static unless they need to be dynamic, and it runs on Workers natively. Since Cloudflare bought the team behind it in January 2026, Workers is its home platform. It stays MIT-licensed, so you can still deploy it anywhere.

Use it when

  • Content sites (marketing, docs, blogs, catalogs) where most pages are static and a few must be rendered on request.
  • A new site where you aren't tied to Next.js: Astro runs natively on Workers, with no translation layer.
  • Fast pages by default: Astro ships no JavaScript unless a component needs it.

Don't use it when

  • A highly interactive app (a dashboard, an editor): a React SPA or Next.js fits better.
  • Your team already knows Next.js well and the site needs per-request rendering: Next.js on Workers keeps them on familiar ground.

Pricing

Free (MIT). You pay Workers pricing for the pages rendered on request; static pages are free on Cloudflare.

Gotchas, with fixes

Gotcha: Astro 6 changed how the Cloudflare adapter exposes bindings: Astro.locals.runtime is deprecated.

Fix: Read bindings (KV, R2, secrets) through env instead, and check the adapter's upgrade notes when you move between major versions.

Provisioning

Official Pulumi package · Official Terraform provider

Deployed as a Worker with its static assets: ordinary Cloudflare resources. Astro's Cloudflare adapter does the build.

Instead, consider

Where it fits

  • A website, SPA or PWA: Pick 03.

    When some pages must be rendered on request: content sites, docs, catalogs.

Sources

Last reviewed by Nicolas Dao

Want this stack in your AWS account?

Cloudless Labs is a Sydney consultancy. We migrate on-premises systems to AWS, build serverless apps on this stack, and coach teams to ship with Claude Code and Codex.

Contact Us

For general inquiries, please contact us at:

For e-learning capabilities, please contact: