// CUSTOM DOMAINS
Add a Custom Domain
Cloudflare for SaaS custom hostnames, TXT verification, and automatic cert issuance.
Custom domains route through Cloudflare for SaaS: AnySites registers your domain as a Cloudflare Custom Hostname with your project's worker node as the origin, and Cloudflare issues and manages the TLS certificate.
Steps
- Add the domain on the project's Domains page.
- AnySites returns a TXT record (name + value) for ownership verification — add it at your DNS provider.
- Point the domain itself at AnySites with a CNAME to your project's platform subdomain (the same
{project}-{hash}.anysites.appaddress the project already responds on — not a shared/wildcard target). An apex domain that can't hold a CNAME needs an ALIAS/ANAME record from your DNS provider instead, or use awwwsubdomain. - Click Verify (or wait — the platform polls automatically). Once Cloudflare validates the TXT record, it issues a certificate, which typically takes a few minutes.
- Once status is
active, AnySites adds the domain to your project's routing and it starts serving traffic immediately, HTTPS included.