The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update hardcoded API_URL in docs page telemetry
Francesco Sansalvadoreeaddf931eb82
diff --git a/apps/docs/lib/constants.ts b/apps/docs/lib/constants.tsindex d1bbedbf47c..42c12c0d3f4 100644--- a/apps/docs/lib/constants.ts+++ b/apps/docs/lib/constants.ts@@ -1,2 +1,3 @@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_URLdiff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsxindex 0ac7df56c63..ed75637efaa 100644--- a/apps/docs/pages/_app.tsx+++ b/apps/docs/pages/_app.tsx@@ -10,7 +10,7 @@ import { CommandMenuProvider } from 'ui'import components from '~/components'import Favicons from '~/components/Favicons'import SiteLayout from '~/layouts/SiteLayout'-import { IS_PLATFORM, LOCAL_SUPABASE } from '~/lib/constants'+import { API_URL, IS_PLATFORM, LOCAL_SUPABASE } from '~/lib/constants'import { post } from '~/lib/fetchWrappers'import '../styles/ch.scss'import '../styles/main.scss?v=1.0.0'@@ -25,7 +25,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {)function handlePageTelemetry(route: string) {- return post(`https://api.supabase.io/platform/telemetry/page`, {+ return post(`${API_URL}/telemetry/page`, {referrer: document.referrer,title: document.title,route,