aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-08-06 14:18:30 -0700
committerDhravya Shah <[email protected]>2024-08-06 14:18:30 -0700
commitc526decffc4adec2d18f546ffa008c8ac7b110a0 (patch)
tree3fe5b201fcd9a570c047e710b174bd08acbc7c1c /apps
parentOOFOF well now posthog pls (diff)
downloadsupermemory-c526decffc4adec2d18f546ffa008c8ac7b110a0.tar.xz
supermemory-c526decffc4adec2d18f546ffa008c8ac7b110a0.zip
im just tired
Diffstat (limited to 'apps')
-rw-r--r--apps/web/app/providers.tsx7
1 files changed, 6 insertions, 1 deletions
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",