rsnext/test/integration/telemetry
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
..
pages Collect packages are used and eliminated in getServerSideProps (#35404) 2022-04-01 15:08:44 +00:00
public Create TelemetryPlugin for collecting feature usage metrics (#29145) 2021-10-05 14:31:48 -05:00
test Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
.babelrc.default Check next.config.js settings (#10425) 2020-02-14 15:42:44 -05:00
.babelrc.plugin Check next.config.js settings (#10425) 2020-02-14 15:42:44 -05:00
.babelrc.preset Check next.config.js settings (#10425) 2020-02-14 15:42:44 -05:00
jsconfig.swc Chore/stable swc compiler options (#34074) 2022-02-10 01:54:28 +00:00
next.config.custom-routes Record leveraged configs (#18175) 2020-10-27 13:46:18 +00:00
next.config.i18n-images Add experimental wildcard remotePatterns config for upstream images (#36245) 2022-05-05 02:19:16 +00:00
next.config.next-script-workers Telemetry: track usage of 'experimental/nextScriptWorkers' (#36812) 2022-05-11 19:18:44 +00:00
next.config.optimize-css Collect feature usage for optimizeCss (#29828) 2021-10-11 21:15:18 +00:00
next.config.swc Chore/stable swc compiler options (#34074) 2022-02-10 01:54:28 +00:00
next.config.target Check next.config.js settings (#10425) 2020-02-14 15:42:44 -05:00
next.config.webpack Check next.config.js settings (#10425) 2020-02-14 15:42:44 -05:00
package.babel Check next.config.js settings (#10425) 2020-02-14 15:42:44 -05:00