rsnext/test
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
..
.stats-app chore(ci): bump pnpm v8.6.11 to v8.7.1 (#54873) 2023-09-06 00:39:44 +00:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development fix duplicated error logging when start server (#55328) 2023-09-13 22:25:41 +00:00
e2e fix duplicated error logging when start server (#55328) 2023-09-13 22:25:41 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration fix duplicated error logging when start server (#55328) 2023-09-13 22:25:41 +00:00
lib Logging improvements (#55298) 2023-09-13 15:27:02 +02:00
production Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
unit fix duplicated error logging when start server (#55328) 2023-09-13 22:25:41 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts fix(next-swc): skips client/server only checks when running with Jest to unblock testing (#54891) 2023-09-04 13:53:41 +02:00
jest.d.ts refactor smooth scroll bailout logic in app navigations (#53186) 2023-07-27 14:39:51 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.js feat(next-dev): reenable turbopack beta message (#55116) 2023-09-12 16:39:26 +00:00

See Testing for more information on how you can run/write/debug tests for Next.js.