mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
import posthog from "posthog-js"
|
|
|
|
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
|
|
api_host: "/ingest",
|
|
ui_host: "https://us.posthog.com",
|
|
defaults: '2025-05-24',
|
|
capture_exceptions: true, // This enables capturing exceptions using Error Tracking
|
|
debug: process.env.NODE_ENV === "development",
|
|
}); |