Rename middleware.ts in NextJs 16 Beta #84842
Replies: 3 comments 4 replies
-
|
The rename from middleware.ts to proxy.ts in Next.js 16 Beta is meant to clarify its role at the network boundary, focusing on request routing and proxying rather than traditional app-level middleware logic. The goal is to reduce confusion since Next.js middleware now primarily handles edge-level routing and rewrites not in-app logic like Express-style middleware. |
Beta Was this translation helpful? Give feedback.
-
|
While the rename might look unnecessary at first, it actually aligns with the new network boundary model introduced in Next.js 16. |
Beta Was this translation helpful? Give feedback.
-
|
Not just for the sake of change. it actually breaks my deployment. Error: ENOENT: no such file or directory, lstat '/vercel/path0/apps/web/.next/server/proxy.js'
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why? This feels like a case of change for the sake of change.
Beta Was this translation helpful? Give feedback.
All reactions