Custom Domains & DNS
Attach your own domain with CNAME or apex ALIAS records and automatic SSL.
Attach your own domain (for example app.yourcompany.com or yourcompany.com) to any
project deployed on BhaiCode Global Edge.
Add the domain
Open project settings in Cloud Studio or the dashboard, go to Domains, and click Add custom domain. Enter the domain name.
Configure DNS
At your DNS provider (Cloudflare, Route 53, Namecheap, GoDaddy, …), add the record for your case below.
Wait for SSL
Once DNS propagates — usually 1–5 minutes — the certificate is issued automatically and the domain status becomes Active.
DNS records
For app.example.com, add a CNAME:
| Type | Name | Target | TTL |
|---|---|---|---|
| CNAME | app | cname.bhaico.dev | Auto / 300 |
For example.com, add an ALIAS or ANAME record (Cloudflare calls this CNAME flattening):
| Type | Name | Target | TTL |
|---|---|---|---|
| ALIAS / ANAME | @ | cname.bhaico.dev | Auto / 300 |
If your provider only supports A records at the apex:
| Type | Name | IP address | TTL |
|---|---|---|---|
| A | @ | 104.21.58.12 | Auto / 300 |
Do not use a CNAME at the apex
Root domains cannot use CNAME records in standard DNS. Use ALIAS/ANAME where your provider supports it; otherwise use the A record above.