rsnext/test
Jiachi Liu 16eb80b0b0
Fix standalone rendering for unmatched _next routes (#51611)
Request data flow in the server

```
request ---> router worker (1) ---> ipc ---> render worker app (2)
                                                              |-----> render worker pages (3)
```

When it's hitting `_next/*` unmatched routes in standalone server, it will render 404, but when you hit `_next/*` it will render app not-found as the app router is always enabled, but router worker isn't set up with require-hook for proper built-in react version, then the app-render will fail with `./server.edge` exports not found error.

We detect if it's in the render worker, then do the app paths rendering instead of directly looking up for app paths in route worker. This could avoid unexpected accesses to the app-render

Fixes #51482 
Fixes #50232
Closes #51506
Reverts changes in #51172
fix NEXT-1260
2023-06-22 22:58:04 +00:00
..
.stats-app Alias next/server for edge runtime (#50268) 2023-05-24 15:34:29 -07:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
e2e Hot reload when conflicted pages detected and when conflicts are resolved (#51516) 2023-06-22 22:32:14 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Hot reload when conflicted pages detected and when conflicts are resolved (#51516) 2023-06-22 22:32:14 +00:00
lib Hot reload when conflicted pages detected and when conflicts are resolved (#51516) 2023-06-22 22:32:14 +00:00
production Fix standalone rendering for unmatched _next routes (#51611) 2023-06-22 22:58:04 +00:00
unit fix: eslint not ignoring "/app" (#50261) 2023-05-26 16:27:42 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts Increase CI test timeout (#47973) 2023-04-05 10:16:48 -07:00
jest.d.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt

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