cmux/web/app
Lawrence Chen 93d2245a97
fix(web): exclude PostHog proxy from i18n middleware (#1626)
* fix(web): exclude PostHog proxy path from i18n middleware

The next-intl middleware added in cf75da8f intercepts /cmuxterm/* requests
(the PostHog reverse proxy), causing analytics to break since March 12.
Add cmuxterm to the negative lookahead so proxy requests bypass i18n.

* refactor(web): rename middleware.ts to proxy.ts for Next.js 16

Next.js 16 renamed middleware.ts to proxy.ts. Migrate to the new
convention since we're on Next.js 16.1.6.

* feat(web): migrate PostHog to managed reverse proxy at r.cmux.dev

Replace the Next.js rewrites-based proxy (/cmuxterm -> us.i.posthog.com)
with PostHog's managed reverse proxy at r.cmux.dev. This removes the
rewrites from next.config.ts entirely and eliminates the proxy.ts
matcher conflict that caused the analytics regression.

---------

Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
2026-03-17 17:02:42 -07:00
..
[locale] fix(web): exclude PostHog proxy from i18n middleware (#1626) 2026-03-17 17:02:42 -07:00
api Change feedback recipient to feedback@manaflow.com (#1007) 2026-03-06 00:36:35 -08:00
apple-icon.png Add landing page (web/) with Next.js + Tailwind 2026-02-09 20:51:27 -08:00
env.ts Add sidebar help menu to footer (#958) 2026-03-05 21:00:42 -08:00
favicon.ico Add landing page (web/) with Next.js + Tailwind 2026-02-09 20:51:27 -08:00
globals.css Fade in GitHub stars badge and reduce right padding (#703) 2026-03-01 18:53:06 -08:00
icon.png Add landing page (web/) with Next.js + Tailwind 2026-02-09 20:51:27 -08:00
layout.tsx Internationalize website with next-intl for 19 languages (#1216) 2026-03-12 05:36:58 -07:00
robots.ts Add docs, blog, community pages and polish landing page layout 2026-02-09 23:38:05 -08:00
sitemap.ts Add /nightly page (#1378) 2026-03-13 07:41:30 -07:00