fix: restrict PostHog debug logging to development only
This commit is contained in:
parent
c0eea843bf
commit
a79a3af3d5
@ -17,11 +17,13 @@ const posthogOptions = {
|
|||||||
defaults: '2026-01-30',
|
defaults: '2026-01-30',
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
// Debug PostHog configuration
|
// Debug PostHog configuration (dev only)
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
console.log('PostHog Config:', {
|
console.log('PostHog Config:', {
|
||||||
apiKey: import.meta.env.VITE_PUBLIC_POSTHOG_KEY ? '✓ Set' : '✗ Missing',
|
apiKey: import.meta.env.VITE_PUBLIC_POSTHOG_KEY ? '✓ Set' : '✗ Missing',
|
||||||
apiHost: import.meta.env.VITE_PUBLIC_POSTHOG_HOST,
|
apiHost: import.meta.env.VITE_PUBLIC_POSTHOG_HOST,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user