rsnext/docs
Javi Velasco f354f46b3f
Deprecate nested Middleware in favor of root middleware (#36772)
This PR deprecates declaring a middleware under `pages` in favour of the project root naming it after `middleware` instead of `_middleware`. This is in the context of having a simpler execution model for middleware and also ships some refactor work. There is a ton of a code to be simplified after this deprecation but I think it is best to do it progressively.

With this PR, when in development, we will **fail** whenever we find a nested middleware but we do **not** include it in the compiler so if the project is using it, it will no longer work. For production we will **fail** too so it will not be possible to build and deploy a deprecated middleware. The error points to a page that should also be reviewed as part of **documentation**.

Aside from the deprecation, this migrates all middleware tests to work with a single middleware. It also splits tests into multiple folders to make them easier to isolate and work with. Finally it ships some small code refactor and simplifications.
2022-05-19 15:46:21 +00:00
..
advanced-features Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
api-reference Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
api-routes docs: adding changes to setCookie example (#36870) 2022-05-13 14:24:44 +00:00
basic-features Clarify .env* environment variable priority (#36967) 2022-05-17 17:52:41 +00:00
guides Few touch-ups to the docs on web forms in Next (#34286) 2022-02-14 20:21:27 +00:00
migrating Add instructions to create pages directory and add an index.js file to it (#35971) 2022-04-15 14:40:37 +02:00
routing Update shallow routing caveat (#35052) 2022-03-07 23:29:07 +00:00
authentication.md Alphabetize auth docs providers. (#34281) 2022-02-13 00:51:53 +00:00
deployment.md Support graceful shutdowns (#36909) 2022-05-16 14:40:39 +00:00
faq.md fix: change showcase url (#34590) 2022-02-19 22:33:32 +00:00
getting-started.md Update Manual Steps in Getting Started guide (#35898) 2022-04-06 13:06:50 +00:00
going-to-production.md [docs] Update going to production docs around caching headers (#35374) 2022-03-16 22:11:06 +00:00
manifest.json Move CI build cache instructions to Deployment docs (#35418) 2022-05-13 09:56:47 -04:00
testing.md docs: add jest-environment-jsdom package for Jest configuration (#36632) 2022-05-03 11:12:52 +00:00
upgrading.md Update upgrading.md (#36091) 2022-04-15 14:43:26 +02:00