From 5d0f3f1a8204e091c9524f422f289eaa3baa0136 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Sun, 13 Jul 2025 13:30:46 +0100 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=EF=B8=8F=20Stop=20using=20reverse=20p?= =?UTF-8?q?roxy=20for=20posthog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/landing/vercel.json | 12 +----------- apps/web/vercel.json | 12 +----------- packages/posthog/src/client.tsx | 3 +-- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/apps/landing/vercel.json b/apps/landing/vercel.json index 7461cb9b1..32563a24b 100644 --- a/apps/landing/vercel.json +++ b/apps/landing/vercel.json @@ -1,15 +1,5 @@ { "installCommand": "pnpm install", "buildCommand": "cd ../.. && pnpm db:generate && pnpm build:landing", - "outputDirectory": ".next", - "rewrites": [ - { - "source": "/relay-XiKLe/static/(.*)", - "destination": "https://eu-assets.i.posthog.com/static/$1" - }, - { - "source": "/relay-XiKLe/(.*)", - "destination": "https://eu.i.posthog.com/$1" - } - ] + "outputDirectory": ".next" } diff --git a/apps/web/vercel.json b/apps/web/vercel.json index 2b75df7cc..3a9809705 100644 --- a/apps/web/vercel.json +++ b/apps/web/vercel.json @@ -1,15 +1,5 @@ { "installCommand": "pnpm install", "buildCommand": "cd ../.. && pnpm db:generate && pnpm build:web && pnpm db:deploy", - "outputDirectory": ".next", - "rewrites": [ - { - "source": "/relay-XiKLe/static/(.*)", - "destination": "https://eu-assets.i.posthog.com/static/$1" - }, - { - "source": "/relay-XiKLe/(.*)", - "destination": "https://eu.i.posthog.com/$1" - } - ] + "outputDirectory": ".next" } diff --git a/packages/posthog/src/client.tsx b/packages/posthog/src/client.tsx index 56948a88f..a5404432d 100644 --- a/packages/posthog/src/client.tsx +++ b/packages/posthog/src/client.tsx @@ -20,8 +20,7 @@ if (typeof window !== "undefined" && process.env.NEXT_PUBLIC_POSTHOG_API_KEY) { posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY, { debug: false, - api_host: "/relay-XiKLe/", - ui_host: "https://eu.i.posthog.com", + api_host: process.env.NEXT_PUBLIC_POSTHOG_API_HOST, capture_pageview: false, capture_pageleave: true, disable_session_recording: true,