Skip to main content

Astro 7.2.0

Release Date: August 6, 2026

Astro 7.2.0 was released on August 6, 2026, delivering a mix of developer-experience features and experimental build machinery. The headline: preview servers can now run in the background, and a new experimental flag enables incremental static builds that skip regenerating unchanged pages.

What Changed

The most immediately useful addition is astro preview --background. The command returns once the preview server is ready instead of holding the terminal hostage, and new subcommands — astro preview status, astro preview logs, astro preview logs --follow, and astro preview stop — let you inspect and shut it down. Notably, Astro auto-enables background mode when it detects an AI coding agent is driving the command, matching the existing behavior of astro dev. You can opt out with ASTRO_PREVIEW_BACKGROUND=0.

Configuration gets simpler too: logger.entrypoint now accepts paths relative to your project root ('./src/logger.js') instead of forcing you to build an absolute URL.

Why It Matters

For teams shipping to serverless or edge runtimes, the session opt-out matters most. Setting session: false in astro.config.mjs — or simply wiring no session driver — now tree-shakes the session runtime and its unstorage dependency out of the SSR bundle, trimming cold-start parse time.

The experimental incremental static builds are the other big story. With experimental.incrementalBuild: true, Astro can skip regenerating static pages from dynamic routes when both the page's module dependencies and its data cache key are unchanged since the last build. Pages returned from getStaticPaths() can declare a cacheKey, and content collection entries gained an optional digest property to feed that mechanism. To benefit in CI, you must persist the cache directory (node_modules/.astro/ by default) between builds.

What's Next

Several bugs were squashed, including a dev-server crash when --host is a non-loopback address, googleicons() returning the full icon font instead of requested glyphs, and an Astro.url.pathname quirk with build.format: 'preserve'. The AstroPrerenderer render() type was also widened so out-of-process prerenderers can report incremental-build metadata.

Astro 7.2.0 is available now. Run npm create astro@latest or npx astro upgrade to get it.

What is New?

By continuing to use the site, you agree to the use of cookies.