fix: restrict PostHog debug logging to development only

This commit is contained in:
echo 2026-03-02 22:29:14 +01:00
parent c0eea843bf
commit a79a3af3d5

View File

@ -17,11 +17,13 @@ const posthogOptions = {
defaults: '2026-01-30',
} as const
// Debug PostHog configuration
console.log('PostHog Config:', {
// Debug PostHog configuration (dev only)
if (import.meta.env.DEV) {
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(
<StrictMode>