fix: use correct PostHog API host from environment variable
Changed from hardcoded '/ingest' to VITE_PUBLIC_POSTHOG_HOST env var to ensure PostHog events are sent to the correct EU endpoint.
This commit is contained in:
parent
dea569df99
commit
d0428aff0c
@ -13,13 +13,16 @@ initializeTheme();
|
|||||||
const queryClient = new QueryClient()
|
const queryClient = new QueryClient()
|
||||||
|
|
||||||
const posthogOptions = {
|
const posthogOptions = {
|
||||||
api_host: '/ingest',
|
api_host: import.meta.env.VITE_PUBLIC_POSTHOG_HOST,
|
||||||
ui_host: import.meta.env.VITE_PUBLIC_POSTHOG_HOST || 'https://eu.posthog.com',
|
|
||||||
defaults: '2026-01-30',
|
defaults: '2026-01-30',
|
||||||
capture_exceptions: true,
|
|
||||||
debug: import.meta.env.DEV,
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
|
// Debug PostHog configuration
|
||||||
|
console.log('PostHog Config:', {
|
||||||
|
apiKey: import.meta.env.VITE_PUBLIC_POSTHOG_KEY ? '✓ Set' : '✗ Missing',
|
||||||
|
apiHost: import.meta.env.VITE_PUBLIC_POSTHOG_HOST,
|
||||||
|
})
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<PostHogProvider
|
<PostHogProvider
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user