The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: move docs off deprecated endpoint (#34490)
Charis37923df6092b
diff --git a/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx b/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsxindex dc0d637cba4..c85641de578 100644--- a/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx+++ b/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx@@ -283,11 +283,9 @@ function VariableView({ variable, className }: { variable: Variable; className?:function isInvalid(apiData: ProjectApiData) {switch (variable) {case 'url':- return !apiData.autoApiService.endpoint+ return !apiData.app_config?.endpointcase 'anonKey':- // If the anon key is not available, the backend may return the string:- // You're using an older version of Supabase. Create a new project for the latest Auth features.- return /older version/.test(apiData.autoApiService.defaultApiKey)+ return !apiData.service_api_keys?.some((key) => key.tags === 'anon')}}@@ -307,12 +305,10 @@ function VariableView({ variable, className }: { variable: Variable; className?:if (stateSummary === 'loggedIn.selectedProject.dataSuccess') {switch (variable) {case 'url':- variableValue = `${apiData.autoApiService.protocol || 'https'}://${- apiData.autoApiService.endpoint- }`+ variableValue = `https://${apiData.app_config!.endpoint}`breakcase 'anonKey':- variableValue = apiData.autoApiService.defaultApiKey+ variableValue = apiData.service_api_keys!.find((key) => key.tags === 'anon')!.api_keybreak}}diff --git a/apps/docs/lib/fetch/projectApi.ts b/apps/docs/lib/fetch/projectApi.tsindex 0401701a176..8a88f8062de 100644--- a/apps/docs/lib/fetch/projectApi.ts+++ b/apps/docs/lib/fetch/projectApi.ts@@ -15,7 +15,7 @@ async function getProjectApi({ projectRef }: ProjectApiVariables, signal?: Abortthrow Error('projectRef is required')}- const { data, error } = await get('/platform/props/project/{ref}/api', {+ const { data, error } = await get('/platform/projects/{ref}/settings', {params: {path: { ref: projectRef },},