Skip to main content
This page is the short version. The domains reference has every rule: apex domains, proxies like Cloudflare, moving a domain between projects, and the server settings.

Add a domain

In the panel, use the project’s Domains tab. From the CLI, in the project directory:
Without --module, the domain follows the project’s primary module of its kind, also when the primary module changes. Adding and removing domains needs the Admin role.

Create the DNS records

The platform answers with two DNS records to create at your DNS provider:
The TXT record proves the domain is yours; keep it as long as the domain is in use. The CNAME record sends the traffic to the platform. The panel shows the same records.

Verify

The platform checks the records on its own, every minute at first and less often later. To check right away:
It exits with 0 once the domain is ACTIVE, 2 while it is still pending or getting its certificate, and 1 if it failed. The domains reference explains each status. A domain that is not verified within 7 days is removed.

List and remove

The commands use the project in the current directory; pass --project (or -p) to name another one.

Production only

Custom domains serve production. Previews keep their own hosts.