EnglishDeploymentCustom Domains

Custom Domains

By default, Cloudflare Pages assigns a subdomain like project-name.pages.dev. You can map this to your own custom domain (e.g., docs.example.com).

Prerequisites

  • You must own a domain name.
  • It is easiest if your DNS is managed by Cloudflare, but not required.

Setup Instructions

  1. Go to your Pages Project dashboard.
  2. Click on the Custom Domains tab.
  3. Click Set up a custom domain.
  4. Enter the domain you want to use (e.g., docs.mysite.com).
  5. Click Continue.

If DNS is on Cloudflare

Cloudflare will automatically configure the DNS record (CNAME) for you. Just confirm the changes.

If DNS is elsewhere (Godaddy, Namecheap, etc.)

Pages will provide you with a CNAME target (usually project-name.pages.dev). You need to log in to your DNS provider and create a CNAME record pointing your desired subdomain to this target.

Once verified (usually takes a few minutes), your site will be live at your custom domain with automatic SSL!