Files
create-better-t-stack/apps/web/instrumentation-client.ts
2025-08-04 09:12:18 +05:30

8 lines
200 B
TypeScript

// instrumentation-client.js
import posthog from "posthog-js";
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY || "", {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
defaults: "2025-05-24",
});