Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update documentation for custom domains (#9919)

dragarcia9dfff61885e0
diff --git a/apps/reference/docs/guides/platform/custom-domains.mdx b/apps/reference/docs/guides/platform/custom-domains.mdx
index bde2c3b847f..87f831172b4 100644
--- a/apps/reference/docs/guides/platform/custom-domains.mdx
+++ b/apps/reference/docs/guides/platform/custom-domains.mdx
@@ -17,13 +17,13 @@ Custom domains allow you to present a branded experience to your users. You can
To get started:
-1. [Install](/docs/guides/cli) the Supabase CLI 1.10.1+.
+1. [Install](/docs/guides/cli) the Supabase CLI 1.11.3+.
1. [Log in](/docs/guides/cli/local-development#log-in-to-the-supabase-cli) to your Supabase account using the CLI.
1. Enable the Custom Domains add-on in the Billing page of the Dashboard.
## Configure a Custom Domain
-This example assumes your Supabase project is `foobar` with a corresponding API URL `foobar.supabase.co` and configures a custom domain at `api.example.com`.
+This example assumes your Supabase project is `foobar` with a corresponding API URL `foobarbaz.supabase.co` and configures a custom domain at `api.example.com`.
### <a id="cname-configure"></a>Configure a CNAME
@@ -34,7 +34,7 @@ Set up a CNAME record for `api.example.com`, resolving to `foobarbaz.supabase.co
Use the `create` subcommand of the CLI to notify Supabase of your domain and retrieve TXT verification records:
```bash
-supabase custom-hostname create --project-ref foobar --custom-hostname api.example.com --experimental
+supabase domains create --project-ref foobar --custom-hostname api.example.com --experimental
```
The output of the `create` command includes two TXT records[^1] you will need to set up, in order to verify your control over the domain in question,
@@ -47,14 +47,14 @@ Required outstanding validation records:
api.example.com TXT -> ca3-F1HvR9i938OgVwpCFwi1jTsbhe1hvT0Ic3efPY3Q
```
-[^1] One of the records requires you to *replace* the CNAME record set up in [the first step](#cname-configure) with a TXT record. You'll be able to restore it back to the CNAME after the verification process has been completed.
+[^1] One of the records requires you to _replace_ the CNAME record set up in [the first step](#cname-configure) with a TXT record. You'll be able to restore it back to the CNAME after the verification process has been completed.
### Verify your domain
Set up both records as instructed, and then use the `reverify` command for the Supabase Platform to verify the records:
```bash
-supabase custom-hostname reverify --project-ref foobarbaz --experimental
+supabase domains reverify --project-ref foobarbaz --experimental
```
You might need to wait a few minutes before your updated DNS records are propagated, especially if the older records were using a high TTL.
@@ -72,7 +72,7 @@ Additionally, update the DNS configuration for `api.example.com` to once more us
Finally, you can use the `activate` subcommand to reconfigure your project:
```bash
-supabase custom-hostname activate --project-ref foobarbaz --experimental
+supabase domains activate --project-ref foobarbaz --experimental
```
## Remove a Custom Domain
@@ -80,7 +80,11 @@ supabase custom-hostname activate --project-ref foobarbaz --experimental
If you have a custom domain (`api.example.com`) set up for your Supabase project (ref `foobarbaz`, with assigned endpoints at `foobarbaz.supabase.co`), and would like to go back to using the Supabase-provisioned endpoints (`foobarbaz.supabase.co`), you can use the `delete` subcommand:
```bash
-supabase custom-hostname delete --project-ref foobarbaz --experimental
+supabase domains delete --project-ref foobarbaz --experimental
```
As with the final activation stage of the process for setting up a custom domain, you'll need to update any references in your client code and OAuth providers from the custom domain to the Supabase-provisioned endpoints.
+
+## Limitations
+
+Edge functions do not honor the custom domain setting and they still have to be invoked via the `foobarbaz.supabase.co` domain.