Custom domains empower you to offer a tailored and branded experience for your users. Available only as an add-on for projects on the pro and enterprise plans, custom domains not only enhance your brand’s visibility but also provide a more professional appearance compared to using Nhost’s default domain.

You can configure Custom Domains for Auth, Hasura, PostgreSQL, and your own Run services using both the Nhost Dashboard or the Config file.

The following examples assume we are configuring custom domains at *.custom-domain.com.

Follow the instructions in the Custom Domain section of your project’s settings:

  1. Add a CNAME record in your DNS provider for each of the services you want a custom domain for, and click “Verify”. The verification might take a few seconds to succeed.
  2. Once the verification succeeds, click “Save” to update your project.

After configuring your custom domains don’t forget to update your Nhost client to make use of them. For instance, when using our SDK:

const nhost = new NhostClient({
  authUrl: 'https://auth.custom-domain.com/v1',
  storageUrl: 'https://subdomain.storage.region.nhost.run/v1',
  graphqlUrl: 'https://hasura.custom-domain.com/v1/graphql',
  functionsUrl: 'https://functions.custom-domain.com/v1'
})