()
| 1 | export function isAnalyticsEnabled(): boolean { |
| 2 | const key = import.meta.env.VITE_PUBLIC_POSTHOG_KEY as string | undefined; |
| 3 | const host = import.meta.env.VITE_PUBLIC_POSTHOG_HOST as string | undefined; |
| 4 | const disabled = import.meta.env.VITE_DISABLE_ANALYTICS === 'true'; |
| 5 | return Boolean(key && host && !disabled); |
| 6 | } |
no outgoing calls
no test coverage detected