astro@6.0.7
📦 astroView on GitHub →
🐛 7 fixes🔧 2 symbols
Summary
This patch release addresses several bugs, including regressions in server islands, issues with dynamic locale resolution, and fixes an EventEmitter memory leak in Node.js middleware.
🐛 Bug Fixes
- Fixed a build regression where `server:defer` server islands could fail at runtime in projects with multiple frontend integrations when all pages are prerendered.
- Fixed styles from dynamically imported components not being injected on first dev server load.
- Fixed `renderMarkdown` in custom content loaders not resolving images in markdown content; images are now correctly optimized.
- Fixed an issue where `Astro.currentLocale` would incorrectly resolve to the default locale when using dynamic routes like `[locale].astro` or `[locale]/index.astro`; it now resolves to the correct locale from the URL.
- Fixed an issue where visiting an invalid locale URL (e.g. `/asdf/`) would show content from a dynamic `[locale]` page with a 404 status code instead of rendering the custom 404 page. The correct 404 page is now rendered for non-configured locales.
- Fixed Cloudflare dev server islands with `prerenderEnvironment: 'node'` by ensuring the serialized manifest encryption key is shared across dev environments and routing server island requests through the SSR runtime.
- Fixed an EventEmitter memory leak when serving static pages from Node.js middleware by ensuring socket listeners are cleaned up before calling `next()` in the middleware handler.