Custom Domains

Telbase supports three ways to give your apps custom domains: per-project domains, organization subdomain routing, and organization path routing.

Per-Project Custom Domains

The simplest option. Point a single domain to a single project.

Add a domain

bash
telbase domain add app.yourcompany.com

Add DNS records

The CLI returns a CNAME record to add at your DNS provider. Point your domain to your project's Telbase URL.

Verify

bash
telbase domain verify app.yourcompany.com
Automatic SSL
SSL certificates are provisioned automatically via Let's Encrypt once DNS is verified. No manual certificate management needed.

Organization Domains: Subdomain Mode

Subdomain mode creates URLs like dashboard.acme.com and api.acme.com. Each project gets its own subdomain under your organization domain.

When to use subdomain mode

Setup

bash
# Add your organization domain
telbase org domain add acme.com

# Add DNS records (the CLI shows what to add):
# 1. TXT record for verification
# 2. Wildcard CNAME: *.acme.com → cname.vercel-dns.com

# Verify DNS propagation
telbase org domain verify acme.com

# Deploy a project — it automatically gets a subdomain
telbase deploy
# → https://my-dashboard.acme.com

Once verified, every project you deploy automatically receives a URL at {slug}.acme.com. No additional configuration needed per project.

Organization Domains: Path Mode

Path mode creates URLs like acme.com/dashboard and acme.com/api. All projects share a single domain with path-based routing.

When to use path mode

Setup

bash
# Add your organization domain in path mode
telbase org domain add acme.com --mode path

# Add DNS records (the CLI shows what to add):
# 1. TXT record for verification
# 2. CNAME: acme.com → cname.vercel-dns.com

# Verify DNS propagation
telbase org domain verify acme.com

# Deploy a project — it automatically gets a path route
telbase deploy
# → https://acme.com/my-dashboard
Automatic basePath injection
Telbase automatically injects the correct basePath into your Next.js, Vite, or Astro configuration during deploy. You do not need to change your source code.

DNS Setup Walkthrough

After adding a domain, you need to configure DNS records at your registrar. Here is the general process:

  1. Log in to your registrar (Cloudflare, Namecheap, GoDaddy, Route 53, etc.)
  2. Add the TXT record shown by the CLI. This proves you own the domain. The record name and value are provided in the CLI output.
  3. Add the CNAME record. For subdomain mode, add a wildcard CNAME (*.acme.com). For path mode, add a bare CNAME (acme.com).
  4. Wait for propagation. DNS changes typically take 5–30 minutes but can take up to 48 hours.
  5. Verify by running telbase org domain verify acme.com. Telbase checks public DNS servers (Google 8.8.8.8 and Cloudflare 1.1.1.1) for your TXT record.
Cloudflare users
If you use Cloudflare, make sure the CNAME record has the proxy disabled (DNS only / gray cloud) during initial setup. You can enable the proxy after verification completes.

Setup Reminders

Telbase helps you complete DNS setup at every step:

  1. Email with DNS records — When you add an org domain, all org admins receive an email with the exact DNS records and a “Verify Now” link. Keep this email handy while configuring your registrar.
  2. Verification confirmation — Once DNS is verified, a confirmation email explains the auto-deploy behavior.
  3. Dashboard banner — Pending domains show an amber banner on the Projects page with a link to complete setup.
Deploy-time reminders
If you deploy while org domains are pending, the deploy response includes a next step reminding you to verify DNS. This works through both the CLI and the MCP integration with Claude Code, so your AI agent can proactively guide you through DNS setup.

Plan Requirements

Domain features vary by plan:

See the CLI Reference → org section for the full command reference.