Skip to content

Commit

Permalink
im just tired
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhravya committed Aug 6, 2024
1 parent 3908073 commit c526dec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/web/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c526dec

Please sign in to comment.