setup reverse proxy

This commit is contained in:
Nate Kelley 2025-09-24 13:14:07 -06:00
parent 53a955dfbe
commit 78ce244d26
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,9 @@ const options: Partial<PostHogConfig> = {
session_recording: {
recordBody: true,
},
api_host: '/phrp/',
ui_host: 'https://us.posthog.com',
defaults: '2025-05-24',
};
const PosthogWrapper: React.FC<PropsWithChildren> = ({ children }) => {

12
apps/web/vercel.json Normal file
View File

@ -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"
}
]
}