@astrojs/cloudflare@13.3.0
📦 astroView on GitHub →
✨ 2 features🐛 1 fixes🔧 5 symbols
Summary
This release introduces a `waitUntil` option in `RenderOptions` for better background task handling in adapters, and fixes a security issue where `allowedHosts` was ignored by the Cloudflare adapter during local preview.
✨ New Features
- Adds a `waitUntil` option to `RenderOptions` allowing adapters to forward runtime background-task hooks to Astro, enabling background cache work like stale-while-revalidate.
- Cloudflare adapter now forwards `ExecutionContext.waitUntil` to the new `CacheProvider.onRequest()` context.
🐛 Bug Fixes
- Ensures that `server.allowedHosts` (and `vite.preview.allowedHosts`) configuration is respected when using `astro preview` with the `@astrojs/cloudflare` adapter to prevent DNS rebinding attacks during local preview.