# Astro astro@5.12.4 — Release & Upgrade Intelligence
- **Product:** Astro (https://astro.build)
- **Version:** astro@5.12.4
- **Released:** Jul 28, 2025
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/astro/updates/astro-5.12.4/

## Executive Summary (TL;DR)
Astro astro@5.12.4. Source highlight: Optimized the build pipeline for SVG images. Now, Astro doesn't reprocess images that have already been processed.

## Bug Fixes
- Optimized the build pipeline for SVG images. Now, Astro doesn't reprocess images that have already been processed.
- Fixes a bug where the property `Astro.routePattern`/`context.routePattern` wasn't updated when using a rewrite via middleware.
- Fixes a case where an error occurring in a middleware would show the dev overlay instead of the custom `500.astro` page
- Upgrades zod
- Throws a more helpful error in dev if trying to use a server island without an adapter
- Fixes a bug where the CSP headers was incorrectly added to a page when using an adapter.

## Upgrade Command
```bash
npm install --save-exact astro@5.12.4
```
