Skip to content

Commit d52db4e

Browse files
disable PostHog in development
1 parent 72610d1 commit d52db4e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/waku.client.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44
import { Router } from "waku/router/client";
55

6-
posthog.init("phc_eQP8pRBKw0mQWdUYXWE2HBcqQ5n9qP9h5R4xF5Y39aG", {
7-
api_host: "/ph_ebbd7f",
8-
ui_host: "https://us.posthog.com",
9-
defaults: "2025-05-24",
10-
person_profiles: "identified_only",
11-
capture_exceptions: true,
12-
debug: process.env.NODE_ENV === "development",
13-
});
6+
if (process.env.NODE_ENV !== "development")
7+
posthog.init("phc_eQP8pRBKw0mQWdUYXWE2HBcqQ5n9qP9h5R4xF5Y39aG", {
8+
api_host: "/ph_ebbd7f",
9+
ui_host: "https://us.posthog.com",
10+
defaults: "2025-05-24",
11+
person_profiles: "identified_only",
12+
capture_exceptions: true,
13+
});
1414

1515
hydrateRoot(
1616
document,

0 commit comments

Comments
 (0)