Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Routes and domains

Explains how to connect a Worker to the internet using Custom Domains, Routes, or workers.dev subdomains, including the architectural differences and recommended use cases for each.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Routes and domains

Explains how to connect a Worker to the internet using Custom Domains, Routes, or workers.dev subdomains, including the architectural differences and recommended use cases for each.

When To Use

Use when you need to decide whether to connect a Worker to a specific domain, a Cloudflare zone route, or a workers.dev subdomain based on your origin server architecture.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-routing-routes-and-domains-workflow-guide.mdA guide explaining the different methods for connecting Cloudflare Workers to external endpoints using custom domains, routes, and patterns.Questions about a guide explaining the different methods for connecting Cloudflare Workers to external endpoints using custom domains...

What This Skill Covers

  • To allow a Worker to receive inbound HTTP requests, you must connect it to an external endpoint such that it can be accessed by the Internet.
  • Main sections: What is best for me?.

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/configuration/routing