rsnext/test/e2e/app-dir/create-root-layout
Jiachi Liu 8ed492f3c1
Default app router not found (#54199)
Adding a default app router not-found error page in production. We introduced a custom global not-found page if you have `not-found.js` file under app directory. Next.js will still routed you to default pages 404 if there's no routes matched when you don't have a custom `not-found.js`.

This PR creates a default layout (only having `html` and `body`) and will use the default not-found component as children to build a default 404 page for app router, and server will route to that page when there's any app router pages existed. This will also fix the hmr issue that when you hit a pathname doesn't exist, nextjs will compile `/_error` for you which is not expected, now we're using `/not-found` instead

Closes NEXT-1359
2023-08-28 22:09:16 +00:00
..
app/route Also create head when creating root layout (#42571) 2022-11-08 09:14:14 -08:00
app-find-available-dir/(group)/route Migrate create-next-app and e2e tests to Metadata API. (#45819) 2023-02-23 23:40:06 +00:00
app-group-layout/(group) Also create head when creating root layout (#42571) 2022-11-08 09:14:14 -08:00
create-root-layout.test.ts Default app router not found (#54199) 2023-08-28 22:09:16 +00:00
next.config.js Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00