3 ms·
The introduction of Middleware is specifically in alignment with our zero-config principle. You should be able to open `pages/` and understand exactly the flow
by Rauchg 5y ago
The introduction of Middleware is specifically in alignment with our zero-config principle.
You should be able to open `pages/` and understand exactly the flow of traffic.
You'll open `pages/`, find `_middleware.js` which processes your request first, and then the rest of the routes. No magic, and heavily inspired in successful predecessors like Express.js.
Always open for feedback, let me know if this makes sense!
- revskill 5y agoHow to compose middleware then ?