Change8

astro@7.2.4

📦 astroView on GitHub →
🐛 4 fixes

Summary

This patch release addresses several build and routing issues, including fixes for hanging builds with malformed images, improved base path handling, and correct dynamic route parameter resolution when using specific build configurations. It also resolves an issue with `Astro.site` being undefined in certain component rendering scenarios.

🐛 Bug Fixes

  • Fixes builds hanging when an image file is malformed.
  • Fixes base path stripping to respect path-segment boundaries. Routing and context.url.pathname now agree on the same pathname when a configured `base` such as `/docs` is used and a request like `/docs-archive/page` is made.
  • Fixes `astro build` throwing `TypeError: Missing parameter` for dynamic routes when `build.format: 'preserve'` and `trailingSlash: 'always'` are used together. This was due to stripping the framework-injected `.html` suffix dropping the trailing slash required by the compiled route pattern.
  • Fixes `Astro.site` always being `undefined` when rendering components via the Container API, even when `site` is set in `astroConfig`.