feat(web): migrate from pages to workers and add posthog analytics

This commit is contained in:
Aman Varshney
2025-07-13 13:44:09 +05:30
parent bd136792df
commit 864e863656
8 changed files with 2009 additions and 141 deletions

View File

@@ -0,0 +1,9 @@
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",
});