diff --git a/frontend/app/App.tsx b/frontend/app/App.tsx index ce9cf0ddb..63d797ae2 100644 --- a/frontend/app/App.tsx +++ b/frontend/app/App.tsx @@ -22,9 +22,7 @@ if ( process.env.NEXT_PUBLIC_POSTHOG_HOST != null ) { posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, { - ui_host: process.env.NEXT_PUBLIC_POSTHOG_HOST, - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - api_host: `${process.env.NEXT_PUBLIC_FRONTEND_URL}/ingest`, + api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST, opt_in_site_apps: true, disable_session_recording: true, }); diff --git a/vercel.json b/vercel.json index 7310aac7c..8e82c51ff 100644 --- a/vercel.json +++ b/vercel.json @@ -3,11 +3,5 @@ "deploymentEnabled": { "main": false } - }, - "rewrites": [ - { - "source": "/ingest/:path*", - "destination": "https://app.posthog.com/:path*" - } - ] + } } \ No newline at end of file