mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
im just tired
This commit is contained in:
parent
390807318b
commit
c526decffc
1 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue