From 59ad9344b70b12d2ddd049cdd4cd34a07c017cce Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 28 Apr 2025 15:46:42 +0200 Subject: [PATCH] feat: make `DISABLE_POSTHOG` public (#1323) For client side availabilty --- web/src/components/PostHogProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",