From c526decffc4adec2d18f546ffa008c8ac7b110a0 Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Tue, 6 Aug 2024 14:18:30 -0700 Subject: [PATCH] im just tired --- apps/web/app/providers.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/app/providers.tsx b/apps/web/app/providers.tsx index 6c69abf4..f1f1237b 100644 --- a/apps/web/app/providers.tsx +++ b/apps/web/app/providers.tsx @@ -4,7 +4,12 @@ import posthog from "posthog-js"; import { PostHogProvider } from "posthog-js/react"; if (typeof window !== "undefined") { - console.log(process.env.NEXT_PUBLIC_POSTHOG_KEY); + if ( + !process.env.NEXT_PUBLIC_POSTHOG_KEY || + !process.env.NEXT_PUBLIC_POSTHOG_HOST + ) { + console.error("PostHog key or host not found"); + } posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST, person_profiles: "identified_only",