03 — Custom Domain
Connect your own domain (e.g., myapp.com) to your Pages project. SSL is automatic. Works with any registrar.
Prerequisites
You need a domain name and access to its DNS settings. It doesn't matter where you registered it—Namecheap, GoDaddy, Cloudflare Registrar, etc. This process works the same.
The Two Paths
Path A: Your Domain is Already at Cloudflare
If you registered your domain through Cloudflare Registrar or moved your DNS to Cloudflare:
- Go to dash.cloudflare.com and select your domain
- Go to Pages > Your Project > Custom domain
- Enter your domain (e.g.,
myapp.com) - Click Continue
Cloudflare auto-provisions SSL within 2 minutes. Your domain now points to your Pages project. Done.
Path B: Your Domain is Elsewhere (Namecheap, GoDaddy, etc.)
You need to add a CNAME record at your registrar.
Step 1: Get Your Pages Deployment URL
In the Cloudflare Dashboard, under your Pages project, you'll see:
Live URL: drklynx-m-abc123def456.pages.dev
Copy this URL (just the domain, without https://).
Step 2: Add a CNAME Record
Log in to your domain registrar (Namecheap, GoDaddy, etc.) and find the DNS settings.
Add a new CNAME record:
| Field | Value |
|---|---|
| Name | @ (for root) or www (for www.example.com) |
| Type | CNAME |
| Value | drklynx-m-abc123def456.pages.dev |
| TTL | 3600 (or default) |
Example (Namecheap):
- Log in to Namecheap
- Go to Domain List > your domain > Manage
- Click DNS
- Find the CNAME row with Name =
@ - Change the Value to
drklynx-m-abc123def456.pages.dev - Save
Step 3: Wait for Propagation
DNS changes take 24–48 hours to propagate globally, but often only 5–15 minutes for your ISP. You can check propagation:
nslookup myapp.com
# or
dig myapp.com
Once it resolves to Cloudflare's servers, you're done.
Step 4: Tell Cloudflare About Your Domain (Optional but Recommended)
Even if your registrar isn't Cloudflare, you can move your DNS to Cloudflare to speed things up and unlock other features:
- Go to dash.cloudflare.com > + Add site
- Enter your domain
- Choose the free plan (or upgrade later)
- Cloudflare gives you two nameserver addresses
- Go back to your registrar and update the nameservers to Cloudflare's
- Wait 24–48 hours for the change to propagate
- Return to Cloudflare and click Done, nameservers are set
Once your domain is at Cloudflare, SSL auto-provisions within minutes.
SSL Certificate (HTTPS)
Cloudflare automatically provisions and renews a free SSL certificate for your domain. No action needed.
Your site will be accessible at:
https://myapp.comhttps://www.myapp.com(if you created awwwCNAME)
HTTP traffic is automatically redirected to HTTPS.
Apex Domain vs. Subdomain
Apex (Root Domain)
myapp.com (no www)
Use a CNAME at the @ record. Works fine.
www Subdomain
www.myapp.com
Use a CNAME at the www record.
Both
If you want myapp.com and www.myapp.com to work, create two CNAME records:
- Name
@→ CNAMEdrklynx-m-abc123def456.pages.dev - Name
www→ CNAMEdrklynx-m-abc123def456.pages.dev
Troubleshooting
"DNS Not Propagating After 24 Hours"
- Check your CNAME is correct:
nslookup myapp.com - Make sure you saved the DNS record at your registrar
- If using Cloudflare DNS, verify nameservers are set:
nslookup -type=ns myapp.com - Wait another 24 hours (sometimes ISP caches are slow)
- If still stuck, email
support@drklynx.comwith your domain and Pages project name
"SSL Certificate Not Provisioning"
Cloudflare needs to verify domain ownership. This usually happens automatically once DNS resolves. If it's been 30 minutes and SSL hasn't provisioned:
- Double-check your CNAME is exactly:
drklynx-m-abc123def456.pages.dev - Make sure DNS is resolving:
nslookup myapp.com - In the Cloudflare Dashboard, under your domain, go to SSL/TLS > Certificate and look for any error messages
"Redirection Loop or Page Doesn't Load"
If you get an error, your CNAME might be pointing to the wrong Pages project. Check:
- Pages project name:
drklynx-m-abc123def456(matches your customer ID) - CNAME value is exactly:
drklynx-m-abc123def456.pages.dev
Purging Cache After Deploy
After you deploy changes to your Pages project, the edge cache might serve the old version for up to 60 seconds. To force an immediate refresh:
- Go to your domain on dash.cloudflare.com
- Click Caching > Purge Cache
- Choose Everything and click Purge
Your new deploy is live instantly.
What to Read Next
- 04 — Database (D1) — Add dynamic content with a database
- 05 — Storage (R2) — Store user files and images
Getting help: Email support@drklynx.com or check status.drklynx.com.