test: switch to cloudflare

This commit is contained in:
Aman Varshney
2025-08-04 01:44:06 +05:30
parent f56a3b7338
commit 37e4e9ae43
18 changed files with 1881 additions and 350 deletions

View File

@@ -1,11 +1,7 @@
// instrumentation-client.js
import posthog from "posthog-js";
if (process.env.NODE_ENV !== "development") {
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 !== "production",
});
}
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY || "", {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
defaults: "2025-05-24",
});