@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
0.1.21 is the newest release of 0.1.x.
In short
1 new3 internal
Security
1 advisory affects 0.1.16; 1.6.0 fixes them
- ModerateCloudflare Vite plugin exposes secrets over the built-in dev serverGHSA-4pfg-2mw5-f8jx · 8 Jul 2025Fixed in 1.6.0
Release note
Patch Changes
Experimental: Add support for Workers Assets metafiles (_headers and _redirects) in
vite dev.Experimental feature: This feature is being made available behind an experimental option (
headersAndRedirectsDevModeSupport) in the cloudflare plugin configuration. It could change or be removed at any time.cloudflare({ // ... experimental: { headersAndRedirectsDevModeSupport: true }, }),Currently, in this experimental mode, requests that would result in an HTML response or a 404 response will take into account the _headers and _redirects settings.
Known limitation: requests for existing static assets will be served directly by Vite without considering the _headers or _redirects settings.
Production deployments or using
vite previewalready accurately supports the_headersand_footersfeatures. The recommendation is to usevite previewfor local testing of these settings.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.