Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: update posthog on prod

Dillion Verma0cf56be45aee
diff --git a/components/posthog-provider.tsx b/components/posthog-provider.tsx
index 8be9ed0c..6fe7ee57 100644
--- a/components/posthog-provider.tsx
+++ b/components/posthog-provider.tsx
@@ -5,7 +5,7 @@ import posthog from "posthog-js";
import { PostHogProvider } from "posthog-js/react";
import { useEffect } from "react";
-if (typeof window !== "undefined" && process.env.NODE_ENV === "production") {
+if (typeof window !== "undefined") {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY!, {
api_host: "https://app.posthog.com",
session_recording: {