Change8

astro@6.0.4

📦 astroView on GitHub →
🐛 7 fixes🔧 5 symbols

Summary

This patch release focuses on fixing several bugs related to the development server, routing, server islands, and toolbar functionality. It also updates an error hint to reflect the correct Vite 7 configuration key.

Migration Steps

  1. If you encountered an unknown file extension error, update your Vite configuration to use `vite.resolve.noExternal` instead of any previous configuration key for this purpose.

🐛 Bug Fixes

  • Prebundle `astro/toolbar` in dev when custom dev toolbar apps are registered to prevent re-optimization reloads that can hide or break the toolbar.
  • Fixes `redirectToDefaultLocale` producing a protocol-relative URL (`//locale`) instead of an absolute path (`/locale`) when `base` is `'/'`.
  • Fixes server islands (`server:defer`) not working when only used in prerendered pages with `output: 'server'`.
  • Fix a dev server bug where newly created pages could miss layout-imported CSS until restart.
  • Fixes a warning when using `prefetchAll`.
  • Fixes a bug where a directory at the project root sharing the same name as a page route would cause the dev server to return a 404 instead of serving the page.
  • Update the unknown file extension error hint to recommend `vite.resolve.noExternal`, which is the correct Vite 7 config key.

Affected Symbols