Skip to content
CosmosDocs

Search the documentation

Type what you are looking for and pick a result.

Use your own domain

Serve a published app at an address you own, such as app.yourcompany.com.

A published app can answer at a domain you control, in place of the address Cosmos gave it.

What you need

  • A published app. Publish first, then connect.
  • A Pro seat. If you are on another plan, Cosmos offers the upgrade when you try to connect.
  • Access to your domain's DNS settings, at the company where you registered the domain.

An app can have one domain of its own.

Connect it

  1. In the app, open Domain from the + beside the tabs.
  2. Type the address you want, for example app.yourcompany.com, and confirm.
  3. Cosmos shows one DNS record. Add it at your domain provider exactly as shown.
  4. Come back to the Domain tab. Cosmos checks for the record by itself.

The tab shows where things stand:

StatusMeaning
WaitingCosmos has not seen the record yet. DNS changes can take from minutes to a few hours.
SecuringThe record is there and Cosmos is getting the certificate that makes the address https.
LiveYour domain serves the app.

If it stays on waiting, the tab says what Cosmos found when it last looked. The usual causes are a typo in the record or a record added to the wrong domain.

Tip

If you type a bare domain, such as yourcompany.com, Cosmos connects it as www.yourcompany.com and, where your provider allows it, sends the bare domain there.

After it is live

Your domain becomes the app's public address. The original Cosmos address keeps working beside it, so links you already shared do not break.

Publishing works as before: publish again and both addresses show the new version.

Change or remove a domain

To use a different domain, open the Domain tab, where replacing one asks you to confirm. Disconnecting a domain, or deleting the app, frees it to be used elsewhere. Afterwards you can remove the record at your provider.