Custom domains
You can show a project’s docs on its own hostname.
1. Point DNS
Create an A or CNAME record from docs.yourdomain.com to your server or Vercel project.
2. Map the hostname
Set in .env:
envCUSTOM_DOMAIN_MAP={"docs.yourdomain.com":"your-project-slug"}
The value must match the project slug in admin (for example guide).
3. Set the public URL
envNEXT_PUBLIC_APP_URL="https://docs.yourdomain.com"
4. Restart / redeploy
Middleware reads the map and rewrites requests to that project’s docs.
You can also store a custom domain on the project in admin — the env map is what powers the edge rewrite.
