Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-routing-custom-domains-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  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/custom-domains