KamoCRM

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

Fixkamo-internal
Shipped
24 ஏப்ரல், 2026 அன்று 12:36 AM 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

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing