rsnext/test/development
Jiachi Liu 14e94e69c5
fix duplicated error logging when start server (#55328)
There're few places calling `loadConfig` to access nextjs config for different purpose, and every of them will do validation of next config scheme and could log the warnings potentially to cause duplicated warnings. To address that issue this PR limit the places when should the warnings be logged in certain places, mainly the `next` command entry. Refactor the API here to make it more explicit

Previous logging redeisgn also might trigger duplicated compilation, for instance you compiled page A but then editing another component it might still displaying page A is recompiled. Now we always display `"Compiled .."` message when there's a recompilation but avoid the unnecessary ones such as initial edge compilor ready but there's no modules inside. Then when it recompiles or recovers from error nextjs server will tell "Compiled .." instead of the specific page which might be not related.

Also refactors a minor issue: When `silent` option is set to `true`, auto recorrect next config option from `loadConfig` API like `traillingSlash` is not working

Closes NEXT-1610

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2023-09-13 22:25:41 +00:00
..
acceptance remove --turbo, use --experimental-turbo as --turbo (#55063) 2023-09-06 17:46:54 +00:00
acceptance-app Updates Mozilla links to not include language preference (#55326) 2023-09-13 11:06:29 -05:00
api-cors-with-rewrite fix(#11930): rewritten api routes can correctly handle cors in dev mode (#38937) 2022-07-29 21:39:43 -05:00
api-route-errors Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
app-dir fix(app): enable React Strict Mode by default (#53375) 2023-08-22 20:17:17 +02:00
app-hmr remove HMR polling in favor of more targeted events (#54406) 2023-08-23 16:25:57 -07:00
app-render-error-log Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
basic fix duplicated error logging when start server (#55328) 2023-09-13 22:25:41 +00:00
client-dev-overlay fix: error overlay hijacking application focus (safari) (#53693) 2023-08-08 21:45:03 +02:00
correct-tsconfig-defaults chore(test): fix flaky tsconfig.json test (#53132) 2023-07-24 14:33:55 -07:00
dotenv-default-expansion Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
experimental-https-server add experimental https support to next dev (#54016) 2023-08-19 01:04:06 +00:00
gssp-notfound Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
jsconfig-path-reloading Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
middleware-warnings refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
next-font Logging improvements (#55298) 2023-09-13 15:27:02 +02:00
pages-dir/custom-app-hmr Fix unexpected full hmr reload when editing _app (#54690) 2023-08-30 12:44:08 +02:00
project-directory-with-styled-jsx-suffix fix: allow user directory with styled-jsx prefix in next dev (#41484) 2022-10-19 19:01:48 +00:00
repeated-dev-edits Add test checking that repeated edits won't cause hydration issues (#44189) 2022-12-21 14:17:50 +01:00
tsconfig-path-reloading Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
typescript-auto-install Update test config (#43661) 2022-12-03 19:49:00 -08:00
watch-config-file Logging improvements (#55298) 2023-09-13 15:27:02 +02:00
webpack-issuer-deprecation-warning fix(next): use moduleGraph.getIssuer to avoid deprecation warning (#36329) (#36330) 2022-04-21 14:14:03 +00:00