Skip to content

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

Fix build

Long Hoang35b434e8fad8
diff --git a/apps/www/lib/fetchWrapper.ts b/apps/www/lib/fetchWrapper.ts
index 6e37b549b65..c573a0d37dc 100644
--- a/apps/www/lib/fetchWrapper.ts
+++ b/apps/www/lib/fetchWrapper.ts
@@ -1,6 +1,7 @@
interface DataProps {
referrer?: string
title: string
+ route?: string
}
export const post = (url: string, data: DataProps, options = {}) => {
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index 3304fb90944..81548c3f736 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -11,7 +11,7 @@ import { ThemeProvider } from '~/components/Providers'
export default function MyApp({ Component, pageProps }: AppProps) {
const router = useRouter()
- function telemetry(route) {
+ function telemetry(route: string) {
return post(`https://api.supabase.io/platform/telemetry/page`, {
referrer: document.referrer,
title: document.title,
@@ -20,7 +20,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
}
useEffect(() => {
- function handleRouteChange(url) {
+ function handleRouteChange(url: string) {
telemetry(url)
}