cmux/web/next.config.ts
Lawrence Chen cb86322e98
Remove docs-site, add PostHog analytics to web (#66)
- Delete docs-site/ (superseded by web/app/docs)
- Add posthog-js with Vercel reverse proxy at /cdata to bypass adblockers
- Track pageviews (SPA-aware), download clicks (hero/navbar/mobile_drawer),
  and GitHub link clicks (hero/navbar/mobile_drawer/footer)
2026-02-18 04:00:04 -08:00

19 lines
425 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
skipTrailingSlashRedirect: true,
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 nextConfig;