The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update api service endpoint
Ayhan039ff0920258
diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsxindex 49d594eb92c..d72c3195232 100644--- a/studio/pages/project/[ref]/api/index.tsx+++ b/studio/pages/project/[ref]/api/index.tsx@@ -4,7 +4,7 @@ import { Typography } from '@supabase/ui'import { FC, createContext, useContext, useEffect, useState } from 'react'import { observer, useLocalObservable } from 'mobx-react-lite'-import { API_URL } from 'lib/constants'+import { API_URL, IS_PLATFORM } from 'lib/constants'import { useStore, withAuth } from 'hooks'import { get } from 'lib/common/fetch'import { snakeToCamel } from 'lib/helpers'@@ -78,6 +78,8 @@ const DocView: FC<any> = observer(({}) => {const swaggerUrl = data?.autoApiService?.restUrlconst 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}`const { data: jsonSchema, error: jsonSchemaError } = useSWR(