Connect a custom domain
Builder Code
Every Project published with Builder Cloud gets a builder.cloud address. On paid plans, you can also serve the site from a domain you own, such as example.com or app.example.com. Builder provisions and renews the HTTPS certificate for you.
Prerequisites
Before you begin, confirm the following:
- Your Space is on a paid plan.
- The Project is currently published. For instructions, visit Publish with Builder Cloud.
- You can edit DNS records with your domain provider, such as your registrar or DNS host.
- The Project doesn't already have a custom domain. Each Project can have one custom domain at a time.
Connect your domain
Follow the steps below to connect a domain.
Step 1: add the domain in Builder
- Open Project settings and go to the Hosting tab. You can also click Add Custom Domain after a successful publish.
- In the Custom domain section, click Connect domain.
- Enter your apex domain, such as
example.com, or a subdomain, such asapp.example.com. - Click Add domain.
Builder opens Complete Domain Setup, which lists the DNS records to add.
Step 2: add DNS records
With your domain provider, add the records shown in Complete Domain Setup. Each record has a Name / Host and a Value / Points To, each with a copy button. Hosts are shown relative to your domain, and @ means the apex domain.
| Record | Type | Name | Value |
Traffic record (subdomain) |
| Your subdomain, such as |
|
Traffic record (apex domain) |
|
| The IP address shown in the setup dialog |
Validation record |
|
| The value shown in the setup dialog |
Remove any existing DNS records with the same names to avoid conflicts. If your DNS provider offers proxying, such as Cloudflare's proxied mode, turn it off for these records so Builder can verify them.
Keep the validation record permanently. Builder uses it to renew your HTTPS certificate. If you delete it, certificate renewal fails.
Step 3: verify the domain
Click Verify Domain. Builder works through three steps:
- Verify DNS records
- Provision HTTPS certificate
- Serve over HTTPS
DNS changes can take up to 72 hours to propagate, though most finish much sooner. You can close the dialog while Builder verifies.
Domain status
The domain row in the Hosting tab shows one of the following statuses:
| Status | What it means | What to do |
Pending setup | DNS records haven't been verified yet. | Click Complete Setup to view the records. |
Verifying | Builder is checking DNS, issuing the certificate, or waiting for the site to serve over HTTPS. | Wait for verification to finish. |
Connected | Your site is live on the domain. | None. Use the row menu to view configuration records or remove the domain. |
Error | Verification failed. | Fix the records, then click Re-check. |
Needs repair | The domain is still unhealthy after 10 minutes. | Click Fix to repair the route. |
Domain released | Another Project verified this domain, so it's no longer connected here. | Click Remove to clear it from this Project. |
Troubleshooting
- DNS records could not be verified. Check that each record's name and value match the setup dialog exactly, then click Re-check.
- HTTPS certificate could not be provisioned. Confirm that the
_acme-challengevalidation record still exists, matches exactly, and isn't proxied. Then try verification again. - Domain connection failed. Review all the configuration records, correct any differences, and try again.
- The apex traffic record is missing from the setup dialog. Remove the domain and add it again.
Remove a custom domain
- In the Hosting tab, open the menu on the domain row.
- Click Remove domain, then confirm.
Removing the domain deletes its route and certificate and frees the domain for another Project. Your site stays available at its builder.cloud address. You can then delete the DNS records with your provider.