The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix error from missing env var in local (#20288)
Charisaccc27df6617
diff --git a/apps/docs/lib/constants.ts b/apps/docs/lib/constants.tsindex 148f168b240..3aa55d2717d 100644--- a/apps/docs/lib/constants.ts+++ b/apps/docs/lib/constants.ts@@ -1,3 +1,7 @@export const IS_PLATFORM = process.env.NEXT_PUBLIC_IS_PLATFORM === 'true'export const LOCAL_SUPABASE = process.env.NEXT_PUBLIC_LOCAL_SUPABASE === 'true'-export const API_URL = process.env.NEXT_PUBLIC_API_URL.replace(/\/platform$/, '')+export const API_URL = (+ process.env.NODE_ENV === 'development'+ ? process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'+ : process.env.NEXT_PUBLIC_API_URL+).replace(/\/platform$/, '')