Custom domains

Swap the .pages.dev address for your own domain — yoursite.com and www.yoursite.com. The trick is doing it without breaking your email, which lives on the same domain.

Attach the domain to Pages

In your Pages project: Custom domains → Set up a domain, type the domain, and Cloudflare walks you through it. If the domain's DNS is already on Cloudflare it adds the records for you; otherwise it tells you exactly what to add.

Do the apex (yoursite.com) and www (www.yoursite.com) as two entries, then pick one as canonical (see the redirect below). Certificates (HTTPS) are issued automatically.

The DNS records

NameTypePoints to
yoursite.com (apex)CNAME*your-project.pages.dev
wwwCNAMEyour-project.pages.dev

*Cloudflare supports a CNAME on the apex ("CNAME flattening"); on other DNS hosts you may use the Pages-provided records instead. When the domain is in the same Cloudflare account, the Pages "Set up a domain" flow just does this.

Don't break email ⚠️

Your website records and your email records are different — touch only the web ones. When you point a domain at a new site, leave these alone: MX (where mail is delivered), and the TXT records SPF, DKIM, DMARC (which prove your mail is genuine). Deleting or "cleaning up" these is the classic way to silently stop receiving email. Change the A/CNAME web records; preserve everything mail-related.

Quick check before and after: note your current MX and the three mail TXT records, and confirm they're unchanged once the site is live. Send yourself a test email.

www → apex (one canonical address)

Pick one address as the real one (usually the bare apex, yoursite.com) and redirect the other to it, so links and SEO don't split. On Cloudflare this is a Redirect Rule (Rules → Redirect Rules): match www.yoursite.com → 301 to https://yoursite.com/$1.

A _redirects file in Pages matches by path, not host, so host-level www→apex is done with a zone Redirect Rule, not _redirects.

Buying the domain — wholesale on Cloudflare

Cloudflare Registrar sells most domains at wholesale cost, no markup — for a portfolio that's real money (tens of thousands of CZK/year on a single premium TLD). Some country domains (.cz, .eu) still go through another registrar for now, then point their nameservers at Cloudflare. The payoff: domain, hosting and site under one roof — all AI-agent-friendly, which is the whole Flowsmith idea.

Where the site is hosted — Cloudflare Pages → · The full path, start to finish — Academy: Zero to a live website →