A
argbe.tech - news
1min read

Astro 6 Beta targets runtime-accurate dev on Cloudflare Workers

Astro announced the first beta of Astro 6 on January 13, highlighting a rebuilt astro dev workflow and platform-focused upgrades. The release also stabilizes live content collections and CSP support introduced in Astro 5.10 and 5.9.

Astro announced the first beta release of Astro 6 on January 13, with the release centered on a redesigned astro dev server and new built-in APIs for Content Security Policy (CSP), fonts, and live content collections. Astro points new projects to npm create astro@latest -- --ref next and recommends upgrading existing projects using npx @astrojs/upgrade beta.

Astro 6 refactors the dev server around Vite’s Environment API so development and production run through closer code paths and can execute in the same runtime you deploy to. For Cloudflare Workers projects, astro dev can run using Cloudflare’s open-source workerd runtime, replacing simulated APIs like Astro.locals.runtime while enabling local access to Durable Objects, KV namespaces, R2 storage, the Workers Analytics Engine, and Workers environment variables and secrets. Astro 6 also makes Astro 5.10’s live content collections and Astro 5.9’s CSP feature stable, and the beta requires Node 22+ (dropping Node 18 and Node 20 support).