Change8

@astrojs/cloudflare@14.1.2

📦 astroView on GitHub →
🐛 3 fixes🔧 3 symbols

Summary

This patch release fixes several build and development issues, including correct handling of custom image services, preventing React hook errors during development, and ensuring build-time variable resolution.

🐛 Bug Fixes

  • Fixes build-time image optimization ignoring a custom image service registered by an integration; custom image services now transform images at build time regardless of configuration source.
  • Prebundles `astro/components` and the `<ClientRouter />` transition runtime modules in the dev server environment to prevent mid-session dep optimizer reloads that caused React "Invalid hook call" errors in islands on the first request after a cold cache.
  • Fixes an issue where `vars` weren't available at build time by loading `vars` from the Wrangler config so `astro:env` public variables resolve correctly at build time.

Affected Symbols