Skip to content

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

fix build

Alaister Younge236ba8c8c29
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
index 8a60cb5b192..483121b0f80 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
@@ -12,7 +12,7 @@ import {
FormSectionContent,
FormSectionLabel,
} from 'components/ui/Forms'
-import { useProjectSettingsQuery } from 'data/config/project-settings-query'
+import { useProjectApiQuery } from 'data/config/project-api-query'
import { useCustomDomainCreateMutation } from 'data/custom-domains/custom-domains-create-mutation'
const schema = yup.object({
@@ -23,7 +23,7 @@ const CustomDomainsConfigureHostname = () => {
const { ui } = useStore()
const { ref } = useParams()
const { mutateAsync: createCustomDomain } = useCustomDomainCreateMutation()
- const { data: settings } = useProjectSettingsQuery({ projectRef: ref })
+ const { data: settings } = useProjectApiQuery({ projectRef: ref })
const FORM_ID = 'custom-domains-form'
const endpoint = settings?.autoApiService.app_config.endpoint ?? undefined