Workers – Share local dev servers through Cloudflare Tunnel in Wrangler and Vite

Workers – Share local dev servers through Cloudflare Tunnel in Wrangler and Vite

You can now share local dev sessions through Cloudflare Tunnel and get a public URL when using either Wrangler or the Cloudflare Vite plugin. This is useful when you need to share a preview, test a webhook, or access your app from another device.

Vite local dev tunnel demo

This lets you either:

To start a tunnel, press t in Wrangler or t + Enter in Vite while your dev server is running. For details on setting up a named tunnel, refer to Share a local dev server.

Source: Cloudflare



Latest Posts

Pass It On
Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply