Change8

astro@6.0.0-beta.11

📦 astroView on GitHub →
2 features🐛 3 fixes🔧 2 symbols

Summary

This release introduces SVG rasterization support via the Sharp image service and enhances the Adapter API to allow specifying a custom server entrypoint when using `entryType: 'self'`. Several minor bugs related to content collection entries and server entrypoint respect have also been fixed.

Migration Steps

  1. If you need further customization at the Vite level when using the new Adapter API with `entryType: 'self'`, omit `serverEntrypoint` and instead specify your custom server entrypoint with [`vite.build.rollupOptions.input`](https://rollupjs.org/configuration-options/#input).
  2. Review the [v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#changed-svg-rasterization) regarding SVG rasterization changes.

✨ New Features

  • Adds support for converting SVGs to raster images (PNGs, WebP, etc) to the default Sharp image service.
  • Updates the Adapter API to allow providing a `serverEntrypoint` when using `entryType: 'self'` in custom adapters.

🐛 Bug Fixes

  • Fixes a race condition in the content layer which could result in dropped content collection entries.
  • Fixes a case where `build.serverEntry` would not be respected when using the new Adapter API.
  • Improves Host header handling for SSR deployments behind proxies.

Affected Symbols