Custom domains
Put a Charming app on your own domain. It works there exactly as it does on charm.ing.
What you can do
Your app, your domain. Put a Charming app at a domain you own, like apps.yourcompany.com. Custom domains are on Pro and above. A team’s app needs the team on Business.
It works the same as on charm.ing. Only the address changes. Public, Signed-in access, and direct shares decide who can open the app and what they can do, and everyone uses the App’s one shared data. A signed-out visitor to a Public App can read it and run only operations whose route declares callers; a signed-out visitor to a private App is asked to sign in, on Charming, and comes back to the domain. A visitor who signs in with window.charming.login() on the domain is treated as on the App’s charm.ing page, with env.user set to them. See Privacy and sharing and Gate an action behind sign-in.
Add a domain
- Open the app’s settings and choose Domain.
- Enter the domain and choose Add domain.
- Add the records the page shows at your DNS provider: a
TXTthat proves you own the domain and aCNAMEthat points it at Charming. ACNAMEon a subdomain likewwwcan’t share its name with any other record, so first delete any record your provider already has on that name, such as awwwrecord another host created. A root domain on Cloudflare is the exception: Cloudflare flattens itsCNAME, so keep your other root records, such asMX. Keep the records until the domain is live. - The domain goes live once the records resolve. Charming checks every minute while the page is open and every ten minutes otherwise. To check right away, choose Check now.
A root domain like example.com works with any DNS provider. If its DNS is on Cloudflare, it takes the same two records. Otherwise the app is served at www.example.com and example.com redirects there, so beside the TXT and CNAME for www, the page lists an A record for @, and a TXT named _vercel when ownership has to be proved. The A and _vercel records stay on the page after www is live, until example.com redirects. While they do, Check now checks only example.com; www is rechecked hourly.
Each app has one custom domain. To change it, remove it and add the new one. A domain keeps working if your plan ends. A domain that isn’t live within a week is removed, and you can’t add it again for 30 days. A domain that stops working is removed after 30 days.
If your domain’s CAA records would block the certificate, the page also lists the CAA records to add.
Over the API
GET, POST and DELETE on /api/v1/apps/{appId}/domain read, add and remove an app’s domain, and POST /api/v1/apps/{appId}/domain/check checks it now. Adding one below Pro is refused with plan_required, which carries the upgradeUrl. An account can add up to 10 domains an hour (rate_limited).