github cloudflare/workers-sdk @cloudflare/vite-plugin@1.34.0

Minor Changes

  • #13666 edcff69 Thanks @edmundhung! - Add tunnel: true to the cloudflare() Vite plugin for sharing your local dev and preview servers via Cloudflare Quick Tunnels

    You 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.com URL 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.

Patch Changes

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.