Fix TS errors (posthogClient)

This commit is contained in:
Will Chen
2025-04-21 13:03:01 -07:00
parent 16d5320485
commit 2fec009d77

View File

@@ -6,8 +6,10 @@ import { PostHogProvider } from "posthog-js/react";
import posthog from "posthog-js";
import { getTelemetryUserId, isTelemetryOptedIn } from "./hooks/useSettings";
// @ts-ignore
const posthogClient = posthog.init(import.meta.env.VITE_PUBLIC_POSTHOG_KEY, {
api_host: "https://us.i.posthog.com",
// @ts-ignore
debug: import.meta.env.MODE === "development",
autocapture: false,
capture_pageview: false,