@astrojs/cloudflare@13.1.0
📦 astroView on GitHub →
✨ 1 features🐛 5 fixes🔧 2 symbols
Summary
This release introduces the `prerenderEnvironment` option for the Cloudflare adapter to support Node.js prerendering environments. It also includes several bug fixes, particularly around configuration forwarding and image handling in the Cloudflare adapter.
✨ New Features
- Adds a `prerenderEnvironment` option to the Cloudflare adapter, allowing users to switch from the default workerd runtime to Node.js for prerendering static pages, useful for Node.js-specific API dependencies.
🐛 Bug Fixes
- Shows an actionable error when running `astro preview` without a prior build.
- Fixes image serving in Cloudflare adapter's `passthrough` mode by using the Cloudflare `ASSETS` binding instead of generic fetch.
- Fixes Cloudflare adapter forwarding of `configPath`, `inspectorPort`, `persistState`, `remoteBindings`, and `auxiliaryWorkers` options to the Cloudflare Vite Plugin, which were previously ignored.
- Fixes `addWatchFile` for `configPath` in the Cloudflare adapter, ensuring the path is resolved relative to the project root instead of the adapter's `node_modules` directory.
- Fixes Cloudflare image transform ignoring the quality parameter.