diff --git a/web/app/[locale]/posthog.tsx b/web/app/[locale]/posthog.tsx index 33d46c48..8c924c3c 100644 --- a/web/app/[locale]/posthog.tsx +++ b/web/app/[locale]/posthog.tsx @@ -7,7 +7,7 @@ import { useEffect, Suspense } from "react"; if (typeof window !== "undefined") { posthog.init("phc_opOVu7oFzR9wD3I6ZahFGOV2h3mqGpl5EHyQvmHciDP", { - api_host: "/cmuxterm", + api_host: "https://r.cmux.dev", ui_host: "https://us.posthog.com", person_profiles: "identified_only", capture_pageview: false, diff --git a/web/next.config.ts b/web/next.config.ts index 1c25cf3d..3ab0db0d 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -15,18 +15,6 @@ const nextConfig: NextConfig = { }, ], }, - async rewrites() { - return [ - { - source: "/cmuxterm/static/:path*", - destination: "https://us-assets.i.posthog.com/static/:path*", - }, - { - source: "/cmuxterm/:path*", - destination: "https://us.i.posthog.com/:path*", - }, - ]; - }, }; export default withNextIntl(nextConfig); diff --git a/web/middleware.ts b/web/proxy.ts similarity index 100% rename from web/middleware.ts rename to web/proxy.ts