- Shipped
- August 26, 2026 at 5:16 AM UTC
- Author
- kamo
- Commit
- fae958f
Next 16 replaced middleware with proxy, and this repo already had proxy.ts — so adding middleware.ts alongside it failed the build outright: "Both middleware file and proxy file are detected". My mistake; I added the file without checking for the one that already did the job. The logic is unchanged and now lives beside withPathname, which exists for exactly this reason: a server component cannot see the request, so the proxy stamps what the root layout needs onto a header. The organization reference is one more of those.