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",