Open source CapCut alternative.
TypeScript
fix(site): route PostHog events through first-party proxy
David Led60150e79fe3
diff --git a/site/src/instrumentation-client.ts b/site/src/instrumentation-client.tsindex 80c4582e..43f5b106 100644--- a/site/src/instrumentation-client.ts+++ b/site/src/instrumentation-client.ts@@ -54,7 +54,8 @@ const recoveredMediaRead = (item: { type?: string }) => item?.type === "MediaFet// and half-saved-file errors straight into production error tracking.if (process.env.NEXT_PUBLIC_POSTHOG_KEY && process.env.NODE_ENV === "production") {posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, {- api_host: "https://us.i.posthog.com",+ api_host: "https://e.donkeycut.com",+ ui_host: "https://us.posthog.com",defaults: "2026-05-30",disable_session_recording: replayFree(),// Error tracking: unhandled errors, unhandled rejections, and everydiff --git a/site/src/lib/analytics/posthog.ts b/site/src/lib/analytics/posthog.tsindex 37908f74..166451a2 100644--- a/site/src/lib/analytics/posthog.ts+++ b/site/src/lib/analytics/posthog.ts@@ -1,5 +1,5 @@// PostHog read access for the analytics pipeline. Browser ingestion uses the-// public project key against us.i.posthog.com; these reads go through the+// public project key through e.donkeycut.com; these reads go through the// query API on the main host, addressed by POSTHOG_PROJECT_ID and authorized// by POSTHOG_PERSONAL_API_KEY — both env, and both required before any// PostHog extraction runs.