<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p" -->

---
title: Astro 6.0: new dev server, Fonts API, and a Rust compiler
description: Astro 6.0 ships with a rewritten dev server powered by Vite's Environment API for better dev/production parity, including support for Cloudflare Workers...
canonical: https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Astro 6.0: new dev server, Fonts API, and a Rust compiler | daily.dev
og:description: Astro 6.0 ships with a rewritten dev server powered by Vite's Environment API for better dev/production parity, including support for Cloudflare Workers...
og:url: https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p
og:image: https://api.daily.dev/og/posts/IHR4FLE2p.png
og:image:alt: Astro 6.0: new dev server, Fonts API, and a Rust compiler
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Astro 6.0: new dev server, Fonts API, and a Rust compiler

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 0 upvotes · 0 comments

## Summary

Astro 6.0 ships with a rewritten dev server powered by Vite's Environment API for better dev/production parity, including support for Cloudflare Workers bindings (KV, D1, R2), Bun, and Deno. New features include a built-in Fonts API for self-hosted font optimization, Live Content Collections that fetch data at request time for CMS updates without rebuilds, and stable CSP support with automatic inline script/style hashing. Experimental features include a Rust-based compiler rewrite (AI-assisted), a queued two-pass rendering system promising up to 2x speed gains, and a platform-agnostic Route Caching API. Dependency bumps include Vite 7, Shiki 4, and Zod 4, with Node 20+ required.

## Content

Astro 6.0 is out, and it's a fairly substantial release. Here's what actually changed.

## Dev server rewrite

The biggest under-the-hood change is a rewritten dev server powered by Vite's Environment API. The goal is better dev/production parity - your local environment now matches the actual production runtime, including Cloudflare Workers bindings like KV, D1, and R2. If you've ever shipped something that worked locally but broke on Cloudflare, this is the fix.

The same rewrite also improves parity for Bun and Deno runtimes.

## Fonts API

There's now a built-in Fonts API that handles self-hosted font optimization through a unified component-based interface. It supports local fonts, Google Fonts, and Fontsource, and takes care of automatic caching and preload hints. Nothing you couldn't wire up manually before, but having it built in removes a lot of boilerplate.

## Live Content Collections

Content Collections now have a "live" mode that fetches data at request time rather than at build time. This means CMS updates show up without a rebuild. It complements the existing static build-time collections rather than replacing them - you pick the right tool for each use case.

## Content Security Policy

CSP support is now stable and built in by default. It includes automatic hashing for inline scripts and styles, a full configuration API, and support for custom hashing algorithms and directives. Previously you'd have to manage this yourself or through a plugin.

## Experimental features

Three things are behind experimental flags:

**Rust compiler** - A rewrite of the existing Go-based `.astro` compiler in Rust. Apparently it was AI-assisted, which is either interesting or concerning depending on your perspective. Speed improvements are the main pitch.

**Queued rendering** - A two-pass rendering approach that replaces the current recursive rendering. The team is reporting up to 2x speed improvements and plans to make this the default in Astro 7.

**Route caching API** - A platform-agnostic caching API using web-standard cache semantics, with cache invalidation tied to live content collections.

## Dependency upgrades

The release bumps Vite to 7, Shiki to 4, and Zod to 4. Node 20+ is required (some sources say Node 22+, so check the release notes for your specific version).

Overall this feels like a release focused on closing the gap between development and production, with the Cloudflare improvements being the most immediately practical for anyone deploying there.

## Similar posts on daily.dev

- [Astro 7.0](https://daily.dev/posts/astro-7-0-2arekjquc) · Astro · 202 upvotes · 14 comments
- [Astro 6.2](https://daily.dev/posts/astro-6-2-39f0obq7u) · Astro · 180 upvotes · 8 comments

---

Tags: [#security](https://daily.dev/tags/security), [#webdev](https://daily.dev/tags/webdev), [#rust](https://daily.dev/tags/rust), [#vite](https://daily.dev/tags/vite), [#astro](https://daily.dev/tags/astro)

[View this post on daily.dev](https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Astro 6.0: new dev server, Fonts API, and a Rust compiler","url":"https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p"},"datePublished":"2026-03-11T14:11:19.130Z","dateModified":"2026-03-12T12:11:28.811Z","description":"Astro 6.0 ships with a rewritten dev server powered by Vite's Environment API for better dev/production parity, including support for Cloudflare Workers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f75618a9bdefb696e6fb47fbd179392b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f75618a9bdefb696e6fb47fbd179392b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/astro-6-0-new-dev-server-fonts-api-and-a-rust-compiler-ihr4fle2p","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,webdev,rust,vite,astro","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Astro 6.0: new dev server, Fonts API, and a Rust compiler"}]}
```

