Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update telemetry API_URL on page load

Francesco Sansalvadore77ecbde3c787
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index 60a1a4684fe..dce4295802c 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -1,4 +1,4 @@
-import { APP_NAME, DESCRIPTION } from 'lib/constants'
+import { API_URL, APP_NAME, DESCRIPTION } from 'lib/constants'
import { DefaultSeo } from 'next-seo'
import { AppProps } from 'next/app'
import { useRouter } from 'next/router'
@@ -13,7 +13,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
const router = useRouter()
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,