Share Your Local Dev Server to the World with a Single "t" Key!
Hey there, it's Shiichan! Today I get to share a handy little update that makes local development nicer.
Cloudflare ChangelogWhat was announced?
Cloudflare's Changelog announced that you can now share your local dev session through Cloudflare Tunnel and get a public URL. It works from either Wrangler or the Cloudflare Vite plugin. It's handy when you want to share a preview, test a webhook, or reach your app from another device.
The story so far
A local dev server usually lives only inside your own machine. So whenever you wanted to check the layout from your phone, receive a webhook from an external service, or show your work to a teammate, you had to set up a separate tunneling tool or add an extra step.
What changes
Now, while your dev server is running, you just press t in Wrangler or t + Enter in Vite, and a public URL spins up. You don't have to launch a separate tool anymore — you can share right inside your usual dev flow, which is lovely.
Dive Deep
You can choose between two ways to share:
- Start a temporary Quick tunnel with a random
*.trycloudflare.comhostname, or - Use an existing named tunnel for a stable hostname and to restrict access with Cloudflare Access.
A Quick tunnel is great for a fast look, while a named tunnel gives you a steady hostname and access control. You can find the setup steps for a named tunnel in the Share a local dev server guide.
Wrap-up
- You can now share your local dev server through Cloudflare Tunnel with a public URL
- Just press
tin Wrangler ort + Enterin Vite - Pick a throwaway Quick tunnel or a stable named tunnel (with Access restrictions if you like)
This is a quietly useful update for Workers developers who often test webhooks, check behavior from a phone or another device, or share previews with their team!