Adding a domain
Add it
Open the project, choose Domains, then Add and enter the hostname, for example
www.example.com.Create the DNS record
At your DNS provider, add the
CNAMErecord shown for the domain:www.example.com. CNAME <the target shown in the dashboard>Wait for it to verify
The domain verifies itself as soon as the record resolves, which can take a few minutes. A certificate is issued automatically and the status changes to connected.
Root domains
DNS does not normally allow a CNAME on a root domain such as example.com. Options:
- Use a provider that supports it. Cloudflare flattens a CNAME on the root automatically (use the name
@). Others call the feature ALIAS or ANAME. - Or add
www.example.comas the domain and redirect the root to it at your provider.
Verifying without moving traffic
If the domain is live somewhere else, you can prove ownership first with a TXT record shown in the dashboard and switch the CNAME when you are ready. A domain with a verified TXT record stays verified without pointing at Vantrex.
Production and branch domains
When adding a domain you choose its environment. A production domain always serves the current production deployment. A preview domain can be limited to one branch, which gives you a stable address such as staging.example.com that follows the latest commit of staging.
If a domain stops resolving
Vantrex rechecks your records. If neither the ownership record nor the CNAME can be found, the dashboard shows when the problem started. If it continues for 48 hours, the domain is disconnected from the project; add it again once the records are fixed.