cloudflare · Cloudflare Workers Docs
Workers Custom Domains
Teaches how to connect a Cloudflare Worker to a specific domain or subdomain using the Cloudflare dashboard or Wrangler configuration, including automatic DNS and certificate management.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Custom Domains
Teaches how to connect a Cloudflare Worker to a specific domain or subdomain using the Cloudflare dashboard or Wrangler configuration, including automatic DNS and certificate management.
When To Use
Use when you need to map a Cloudflare Worker to a custom domain or subdomain with automated DNS record creation and SSL certificate provisioning.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-configuration-routing-custom-domains-workflow-guide.md | A guide explaining how to connect Cloudflare Workers to domains or subdomains using the dashboard or Wrangler configuration. | Questions about a guide explaining how to connect Cloudflare Workers to domains or subdomains using the dashboard or Wrangler configu... |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d.text | A configuration snippet demonstrating how to define a custom domain within a Workers routes object. | Exact payloads, commands, or snippets shown in A configuration snippet demonstrating how to define a custom domain within a Workers routes object. |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-2.text | A TOML configuration snippet demonstrating the use of the customdomain flag within the routes section for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A TOML configuration snippet demonstrating the use of the customdomain flag within the routes section for Cloudflare... |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-3.text | A configuration snippet showing how to enable custom domains for Workers using the customdomain property within the routes array. | Exact payloads, commands, or snippets shown in A configuration snippet showing how to enable custom domains for Workers using the customdomain property within the r... |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-4.text | A TOML configuration snippet demonstrating the use of the customdomain property within the routes table for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A TOML configuration snippet demonstrating the use of the customdomain property within the routes table for Cloudflar... |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-5.text | A JavaScript code snippet demonstrating a failed fetch request to a custom domain within a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating a failed fetch request to a custom domain within a Cloudflare Worker. |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-6.text | A JavaScript code snippet demonstrating a basic fetch handler for a Cloudflare Worker configured with a custom domain. | Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating a basic fetch handler for a Cloudflare Worker configured with a custom domain. |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-7.text | A wrangler.toml configuration snippet demonstrating how to define a custom domain for a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration snippet demonstrating how to define a custom domain for a Cloudflare Worker. |
examples/workers-configuration-routing-custom-domains-cloudflare-workers-custom-d-8.text | A TOML configuration snippet demonstrating the use of the customdomain flag within the routes section for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A TOML configuration snippet demonstrating the use of the customdomain flag within the routes section for Cloudflare... |
What This Skill Covers
- Custom Domains allow you to connect your Worker to a domain or subdomain, without having to make changes to your DNS settings or perform any certificate mana...
- Main sections:
Background,Add a Custom Domain,Set up a Custom Domain in the dashboard,Set up a Custom Domain in your Wrangler configuration file,Worker to Worker communication.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/configuration/routing/custom-domains
