The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update auth config call in support form to RQ
Joshen Lima24340ffb6a8
diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex b711f15d6b8..9a55fa0d40e 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -36,6 +36,7 @@ import DisabledStateForFreeTier from './DisabledStateForFreeTier'import { CATEGORY_OPTIONS, SERVICE_OPTIONS, SEVERITY_OPTIONS } from './Support.constants'import { formatMessage, uploadAttachments } from './SupportForm.utils'import { useRouter } from 'next/router'+import { getProjectAuthConfig } from 'data/auth/auth-config-query'const MAX_ATTACHMENTS = 5const INCLUDE_DISCUSSIONS = ['Problem', 'Database_unresponsive']@@ -201,13 +202,11 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {}if (values.projectRef !== 'no-project') {- const URL = `${API_URL}/auth/${values.projectRef}/config`- // [Joshen] Will refactor another time once- // https://github.com/supabase/supabase/pull/16227 goes in- const authConfig = await get(URL)- if (!authConfig.error) {+ try {+ const authConfig = await getProjectAuthConfig({ projectRef: values.projectRef })payload.siteUrl = authConfig.SITE_URLpayload.additionalRedirectUrls = authConfig.URI_ALLOW_LIST+ } finally {}}