The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix build error in API docs page
Joshen Limac8fb0643b15
diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsxindex f6fd1653876..15b9e75976d 100644--- a/studio/pages/project/[ref]/api/index.tsx+++ b/studio/pages/project/[ref]/api/index.tsx@@ -78,7 +78,6 @@ 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(@@ -113,7 +112,13 @@ const DocView: FC<any> = observer(({}) => {)// Data Loaded- const { autoApiService } = data+ const autoApiService = {+ ...data.autoApiService,+ endpoint: IS_PLATFORM+ ? `https://${data?.autoApiService?.endpoint}`+ : data.autoApiService.endpoint,+ }+const { query } = routerconst { page, resource, rpc } = queryconst { paths, definitions } = PageState.jsonSchema