Powered by NovaDocs
Welcome to NovaDocsStart with Installation → Install with Docker, or switch language to Polish (PL).

Custom domains

Admin3 min readUpdated Aug 7, 2026

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:

env
CUSTOM_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

env
NEXT_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.

Was this helpful?