@astrojs/cloudflare@13.5.1
📦 astroView on GitHub →
🐛 4 fixes🔧 1 symbols
Summary
This patch release focuses on bug fixes, particularly improving compatibility and behavior for Cloudflare deployments by correctly handling adapter options and preventing duplicate KV bindings. It also resolves an import issue between .astro and .ts files.
🐛 Bug Fixes
- Fixes `remoteBindings: false` being ignored during `astro build` by ensuring the Cloudflare prerenderer's internal Vite preview server receives adapter options, allowing remote-flagged bindings to be emulated locally.
- Fixes user-declared KV namespace bindings being duplicated in the generated `dist/server/wrangler.json`, which caused wrangler validation to fail. The customizer now only injects the `SESSION` binding and relies on `@cloudflare/vite-plugin` for merging.
- Fixes `.astro` files failing with `No matching export in "html:..." for import "default"` when default-imported from a `.ts` file.
- Fixes an issue where the `<Prism />` component failed to work in Cloudflare Workers.