Merge OTK-redirect into proxy.ts, delete duplicate middleware.ts

Fixkamo-internal
Shipped
24 Aprili 2026, 00:36 UTC
Author
kamo
Commit
7921ccc

Next.js 15 refuses to build when both middleware.ts and proxy.ts exist. The OTK hand-off redirect that lived in middleware.ts — sending any request with ?otk=… to /validate so the OTK actually gets consumed — now lives inside proxy.ts before the auth/access-rule checks. Without this the last four kamo-internal builds failed with 'Both middleware file and proxy file are detected', which is why the deployed image is stale and the ENTER button was working against the old client bundle.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei