Change8

astro@6.1.4

📦 astroView on GitHub →
🐛 4 fixes🔧 4 symbols

Summary

This patch release addresses several bugs related to Vite builds, the Cloudflare adapter in development mode, and trailing slash handling for pages with dots in filenames and static builds.

🐛 Bug Fixes

  • Removed unused re-exports from assets/utils barrel file to fix Vite build warning.
  • Fixed "Expected 'miniflare' to be defined" errors and 404 responses in dev mode when using the Cloudflare adapter and config file changes by performing a Vite in-place restart instead of creating a new Vite server.
  • Fixed pages with dots in filenames (e.g. `hello.world.astro`) returning 404 when accessed with a trailing slash in the dev server by updating `trailingSlashForPath` to only force `trailingSlash: 'never'` for endpoints with file extensions.
  • Fixed `trailingSlash: "always"` producing redirect HTML instead of the actual response for extensionless endpoints during static builds.

Affected Symbols