Custom domains (Cloudflare Pages) — by Cloudflare
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
- Workers & Pages > project > Custom domains > Set up a domain
- Apex: add the zone and switch nameservers; the CNAME is created for you
- Subdomain: CNAME to <YOUR_SITE>.pages.dev
Paraphrased from the source. Menus can differ by version, so check the original for full details.
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