Custom Domains
Use your own domain for a cmdocs site deployed on the dashboard.
Custom Domains
Every cmdocs project gets a built-in <slug>.cmdocs.app subdomain, but you'll usually want your docs on something like docs.yourcompany.com. This page walks through adding a custom domain end-to-end.
How DNS resolution works
cmdocs's static router uses the incoming Host header to find the right project, then serves its built static files. TLS is handled at the edge.
Walkthrough
Add your domain
Click Add Domain and enter the full hostname you want to use, e.g. docs.yourcompany.com. cmdocs validates the format and checks that the domain isn't already claimed by another project.

Create the DNS record
cmdocs shows you the exact DNS record to create at your registrar. For most cases, it's a single CNAME:

| Type | Name | Value | TTL |
|---|---|---|---|
CNAME | docs | cmdocs.app | 3600 |
For an apex domain (e.g. yourcompany.com with no subdomain), use an ALIAS or ANAME record if your DNS provider supports them — otherwise an A record to the IP shown in the dashboard.
Wait for verification
cmdocs polls DNS automatically. Once the CNAME resolves, the domain status flips to Verified and TLS provisioning begins via Let's Encrypt.

Verification usually completes within 1–10 minutes depending on your registrar's TTL.
TLS auto-provision
As soon as the domain verifies, cmdocs requests an HTTPS certificate. When the certificate is issued, the status turns Live and your site is reachable over https://.

DNS examples
- Open DNS → Records for your domain.
- Click Add record.
- Type
CNAME, Namedocs, Targetcmdocs.app. - Set Proxy status to DNS only (gray cloud). Cloudflare's orange-cloud proxy will break TLS provisioning.
- Domain List → Manage → Advanced DNS.
- Add New Record → Type
CNAME Record, Hostdocs, Valuecmdocs.app., TTLAutomatic.
- Hosted zones → your zone → Create record.
- Record name
docs, TypeCNAME, Valuecmdocs.app, TTL300.
- DNS → Manage custom records.
- Host
docs, TypeCNAME, TTL1H, Datacmdocs.app..
Domain settings reference
Prop
Type
You can attach multiple domains to a single environment. Set one as primary to redirect the others to it for canonical SEO.
Troubleshooting
What's next
How is this guide?
