The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Hide custom domains behind feature flag
Joshen Lim2b3832ab8a6b
diff --git a/studio/components/interfaces/Settings/API/ServiceList.tsx b/studio/components/interfaces/Settings/API/ServiceList.tsxindex 3eefe1b55a9..c20e68926da 100644--- a/studio/components/interfaces/Settings/API/ServiceList.tsx+++ b/studio/components/interfaces/Settings/API/ServiceList.tsx@@ -5,6 +5,7 @@ import { IconAlertCircle, Input } from 'ui'import {useStore,+ useFlag,useProjectSettings,useProjectPostgrestConfig,useJwtSecretUpdateStatus,@@ -26,6 +27,8 @@ const ServiceList: FC<Props> = ({ projectRef }) => {const router = useRouter()const { ref } = router.query+ const isCustomDomainsEnabled = useFlag('customDomains')+const { services, isError, mutateSettings } = useProjectSettings(ref as string | undefined)const { mutateConfig } = useProjectPostgrestConfig(ref as string | undefined)const { jwtSecretUpdateError, jwtSecretUpdateStatus }: any = useJwtSecretUpdateStatus(ref)@@ -100,9 +103,11 @@ const ServiceList: FC<Props> = ({ projectRef }) => {<PostgrestConfig /></section>- <section className="mt-8">- <CustomDomainConfig />- </section>+ {isCustomDomainsEnabled && (+ <section className="mt-8">+ <CustomDomainConfig />+ </section>+ )}</div></>)