Minor Changes
-
#13666
edcff69Thanks @edmundhung! - Addtunnel: trueto thecloudflare()Vite plugin for sharing your local dev and preview servers via Cloudflare Quick TunnelsYou can now expose your local dev server publicly by setting
tunnel: true:cloudflare({ tunnel: true, });
You can also enable tunnel sharing dynamically using an environment variable:
cloudflare({ tunnel: process.env.ENABLE_DEV_TUNNEL === "true", });
This starts a Cloudflare Quick Tunnel that gives you a random
*.trycloudflare.comURL to share. The tunnel stops automatically when the dev or preview session ends. Quick tunnels don't require a Cloudflare account or any configuration.A warning is shown when Server-Sent Events (SSE) responses are detected through the tunnel, since quick tunnels don't support SSE.