mirror of https://github.com/buster-so/buster.git
setup reverse proxy
This commit is contained in:
parent
53a955dfbe
commit
e8af5ba7a1
|
@ -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 }) => {
|
||||
|
@ -58,6 +61,7 @@ const PosthogWrapper: React.FC<PropsWithChildren> = ({ children }) => {
|
|||
import('posthog-js'),
|
||||
import('posthog-js/react'),
|
||||
]);
|
||||
console.log('posthog', posthog);
|
||||
|
||||
setPosthogModules({ posthog, PostHogProvider });
|
||||
} catch (error) {
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue