Skip to content

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

Merge branch 'master' into fix-endpoint

Hieu Phambf95a7453d7d
diff --cc studio/pages/project/[ref]/api/index.tsx
index d72c3195232,77a220bb8e1..f6fd1653876
--- a/studio/pages/project/[ref]/api/index.tsx
+++ b/studio/pages/project/[ref]/api/index.tsx
@@@ -78,9 -78,7 +78,8 @@@ const DocView: FC<any> = observer(({})
const swaggerUrl = data?.autoApiService?.restUrl
const headers: any = { apikey: API_KEY }
- if(IS_PLATFORM) data?.autoApiService?.endpoint = `https://${data?.autoApiService?.endpoint}`
-
- if (API_KEY?.length > 40) headers['authorization'] = `Bearer ${API_KEY}`
++ if (IS_PLATFORM) data?.autoApiService?.endpoint = `https://${data?.autoApiService?.endpoint}`
+ if (API_KEY?.length > 40) headers['Authorization'] = `Bearer ${API_KEY}`
const { data: jsonSchema, error: jsonSchemaError } = useSWR(
() => swaggerUrl,