This RFC proposes a new approach to implementing middleware in Next.js, moving away from a single middleware.ts
file to a more dynamic, route-specific implementation similar to the current handling of dynamic segments, pages, and layouts.
The current middleware implementation in Next.js, while powerful, lacks the flexibility and modularity offered by other Next.js features like dynamic routing. This proposal aims to bring middleware in line with these other features, allowing for more granular control and easier management of middleware across a complex application.