diff --git a/web/src/components/PostHogProvider.tsx b/web/src/components/PostHogProvider.tsx index cf8d2383..85ca8b05 100644 --- a/web/src/components/PostHogProvider.tsx +++ b/web/src/components/PostHogProvider.tsx @@ -7,7 +7,7 @@ import { Suspense, useEffect } from "react" export function PostHogProvider({ children }: { children: React.ReactNode }) { useEffect(() => { - if (process.env.DISABLE_POSTHOG === "true") return + if (process.env.NEXT_PUBLIC_DISABLE_POSTHOG === "true") return // biome-ignore lint/style/noNonNullAssertion: The NEXT_PUBLIC_POSTHOG_KEY environment variable is guaranteed to be set in production. posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { ui_host: "https://eu.posthog.com",