diff --git a/apps/web/src/context/Posthog/BusterPosthogProvider.tsx b/apps/web/src/context/Posthog/BusterPosthogProvider.tsx index 390ff6c21..55a96c1de 100644 --- a/apps/web/src/context/Posthog/BusterPosthogProvider.tsx +++ b/apps/web/src/context/Posthog/BusterPosthogProvider.tsx @@ -35,6 +35,9 @@ const options: Partial = { session_recording: { recordBody: true, }, + api_host: '/phrp/', + ui_host: 'https://us.posthog.com', + defaults: '2025-05-24', }; const PosthogWrapper: React.FC = ({ children }) => { diff --git a/apps/web/vercel.json b/apps/web/vercel.json new file mode 100644 index 000000000..24bd1eaaa --- /dev/null +++ b/apps/web/vercel.json @@ -0,0 +1,12 @@ +{ + "rewrites": [ + { + "source": "/phrp/static/(.*)", + "destination": "https://us-assets.i.posthog.com/static/$1" + }, + { + "source": "/phrp/(.*)", + "destination": "https://us.i.posthog.com/$1" + } + ] +}