{"id":470,"date":"2026-05-18T00:00:00","date_gmt":"2026-05-18T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/05\/18\/workers-share-local-dev-servers-through-cloudflare-tunnel-in-wrangler-and-vite\/"},"modified":"2026-05-18T00:00:00","modified_gmt":"2026-05-18T00:00:00","slug":"workers-share-local-dev-servers-through-cloudflare-tunnel-in-wrangler-and-vite","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/05\/18\/workers-share-local-dev-servers-through-cloudflare-tunnel-in-wrangler-and-vite\/","title":{"rendered":"Workers &#8211; Share local dev servers through Cloudflare Tunnel in Wrangler and Vite"},"content":{"rendered":"<p>You can now share local dev sessions through <a href=\"https:\/\/developers.cloudflare.com\/tunnel\/\">Cloudflare Tunnel<\/a> and get a public URL when using either <a href=\"https:\/\/developers.cloudflare.com\/workers\/wrangler\/\">Wrangler<\/a> or the <a href=\"https:\/\/developers.cloudflare.com\/workers\/vite-plugin\/\">Cloudflare Vite plugin<\/a>. This is useful when you need to share a preview, test a webhook, or access your app from another device.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/developers.cloudflare.com\/_astro\/vite-local-dev-tunnel.CW4xpgIR_ZmyQ8a.webp\" alt=\"Vite local dev tunnel demo\" \/><\/p>\n<p>This lets you either:<\/p>\n<ul>\n<li>start a temporary <a href=\"https:\/\/developers.cloudflare.com\/tunnel\/setup\/#quick-tunnels-development\">Quick tunnel<\/a> with a random <code>*.trycloudflare.com<\/code> hostname, or<\/li>\n<li>use an existing <a href=\"https:\/\/developers.cloudflare.com\/tunnel\/setup\/#create-a-tunnel\">named tunnel<\/a> for a stable hostname and to restrict access with <a href=\"https:\/\/developers.cloudflare.com\/cloudflare-one\/access-controls\/\">Cloudflare Access<\/a>.<\/li>\n<\/ul>\n<p>To start a tunnel, press <code>t<\/code> in Wrangler or <code>t + Enter<\/code> in Vite while your dev server is running. For details on setting up a named tunnel, refer to <a href=\"https:\/\/developers.cloudflare.com\/workers\/development-testing\/local-dev-tunnels\/\">Share a local dev server<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>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. This lets you either: start a temporary Quick tunnel with a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-470","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}