Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Share a local dev server

Expose a local development server to the public internet using Cloudflare Quick Tunnels via Wrangler or the Cloudflare Vite plugin.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Share a local dev server

Expose a local development server to the public internet using Cloudflare Quick Tunnels via Wrangler or the Cloudflare Vite plugin.

When To Use

Use when you need to share a local preview, test webhooks, or access a local development server from an external device using a temporary public URL.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-development-testing-local-dev-tunnels-share-a-server-workflow-guide.mdA guide explaining how to expose a local Cloudflare Workers development server to the internet using Cloudflare Quick Tunnels.Questions about a guide explaining how to expose a local Cloudflare Workers development server to the internet using Cloudflare Quick...
examples/workers-development-testing-local-dev-tunnels-share-a-server-cloudflare-.textThe command to start a local development server with a tunnel using wrangler dev.Exact payloads, commands, or snippets shown in The command to start a local development server with a tunnel using wrangler dev.
examples/workers-development-testing-local-dev-tunnels-share-a-server-cloudflare--2.textA command line instruction demonstrating how to use the wrangler dev command with the tunnel flag to share a local development server.Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to use the wrangler dev command with the tunnel flag to share a local de...
examples/workers-development-testing-local-dev-tunnels-share-a-server-cloudflare--3.textA command line instruction demonstrating how to run the wrangler development server with the tunnel flag enabled.Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to run the wrangler development server with the tunnel flag enabled.
examples/workers-development-testing-local-dev-tunnels-share-a-server-cloudflare--4.textA vite configuration file demonstrating how to enable Cloudflare Dev Tunnels using the cloudflare plugin.Exact payloads, commands, or snippets shown in A vite configuration file demonstrating how to enable Cloudflare Dev Tunnels using the cloudflare plugin.
examples/workers-development-testing-local-dev-tunnels-share-a-server-cloudflare--5.textA shell command demonstrating how to enable a local development tunnel using the ENABLE_DEV_TUNNEL environment variable with Vite.Exact payloads, commands, or snippets shown in A shell command demonstrating how to enable a local development tunnel using the ENABLEDEVTUNNEL environment variable...

What This Skill Covers

  • You can expose your local dev server over a Cloudflare Quick Tunnel when you need to share a preview, test a webhook, or access your app from another device....
  • Main sections: Start a tunnel, Security considerations, Related docs.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/development-testing/local-dev-tunnels