Astro 7
Astro 7 is a major release focused on speed, request-pipeline control, and removing old experimental/deprecated surfaces. It is not a new mental model for Astro. If you need the framework basics, start with Astro, then use this topic for the version-specific upgrade and new APIs.
The biggest change is the build pipeline. Astro 7 moves more work to native tooling: Vite 8 with Rolldown, a Rust .astro compiler, Sätteri for Markdown/MDX, and a stable queued rendering engine. Most projects should upgrade cleanly, but older projects can hit issues around Markdown plugins, invalid .astro markup, whitespace changes, src/fetch.ts, and removed APIs.
What To Read First
- What Changed - release map and what matters to app developers
- Upgrade Checklist - fastest safe path from Astro 6 to Astro 7
- Breaking Changes - what can actually break
- Upgrade Errors - fix common failures after upgrading
Main Topics
- Build and Rendering Pipeline - how Vite 8, Rolldown, Rust, Sätteri, and queued rendering fit together
- Request Pipeline - default request flow and advanced routing
- Markdown in Astro 7 - Sätteri default, unified fallback, MDX implications
- Route Caching -
Astro.cache,context.cache,routeRules, invalidation, providers - Configure Route Caching - practical setup with
memoryCache() - Use Advanced Routing -
src/fetch.ts,fetchFile,astro/fetch,astro/hono - Background Dev Server - AI-agent-friendly
astro devbehavior - Vite 8 and Rolldown - Astro-relevant Vite 8 details
Opinionated Take
For a normal Astro app, the safe Astro 7 path is boring:
- Run
@astrojs/upgrade. - Run your build and visual checks.
- Remove old experimental flags.
- Keep
memoryCache()or explicit HTTP cache headers unless you know your host’s CDN provider is ready. - Stay on unified only if you actually depend on remark/rehype/recma plugins.
Do not adopt advanced routing just because it is new. Use it when you need to control the request pipeline, for example auth before actions, custom API delegation, or Hono middleware composition.
Follow-Up
learn/astro/ currently frames Astro 6.1 as current. After this topic lands, update that general Astro topic to point here for Astro 7-specific changes.