Skip to content

Custom domains (Cloudflare Pages) — by Cloudflare

beginnerpageLink only (©)

How to attach an apex domain or subdomain to a Pages project. Apex domains need the zone on Cloudflare; subdomains just need a CNAME to <site>.pages.dev. Add the domain in the dashboard first or you may get a 522.

Quick steps

  1. Workers & Pages > project > Custom domains > Set up a domain
  2. Apex: add the zone and switch nameservers; the CNAME is created for you
  3. Subdomain: CNAME to <YOUR_SITE>.pages.dev

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on developers.cloudflare.com

Source: Custom domains (Cloudflare Pages) by Cloudflare. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

cloudflare pagescustom domaincname

More in Hosting & Deploying