rsnext/test/e2e/app-dir
Jiachi Liu 0616f1b432
Add not found boundary and move head cache to app router (#47688)
### What?

- Add not found boundary to app router
- Move `head` cache back to app router

### Why?

We want the head to be rendered separately from body, previously to be
able to use `redirect()` and `notFound()` in `generateMetadata` we move
the head cache into layout-router to be wrapped by not found and
redirect boundaries. Since redirect boudary is already moved to
app-router, so we only need to add not found boundary and move head
cache to app router.

Notice: there's a limitation that we can't find the corresponding not
found of page if you throw notFound in generateMetadata, the root layout
+ root/default not found will be used to generate the 404 page

### How?

Closes NEXT-864
Fixes #46738

fix NEXT-888 ([link](https://linear.app/vercel/issue/NEXT-888))

---------
2023-03-30 14:08:37 -07:00
..
_allow-underscored-root-directory Underscore Handling Fixes (#47581) 2023-03-28 12:19:01 +02:00
actions Finalize HOC support with server entries and add encodeReply & decodeReply (#47438) 2023-03-24 13:01:10 +01:00
app Update some flakey test cases (#47556) 2023-03-26 23:41:15 -07:00
app-a11y Implement route announcer for app dir (#47018) 2023-03-13 13:09:22 -07:00
app-alias Add experimental route type checking (#45761) 2023-02-11 15:06:39 +00:00
app-basepath Prefix basePath in navigate and prefix methods in app router (#45771) 2023-02-10 13:01:00 +00:00
app-css Fix CSS not being bundled in app dir (#45787) 2023-03-17 17:38:19 +00:00
app-edge Pass through original matcher source in manifest (#46753) 2023-03-03 16:55:41 -08:00
app-edge-global Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-external Fix client boundary defined in a module (#46171) 2023-02-21 15:20:45 +00:00
app-middleware Update client router filter to separate redirects handling (#46752) 2023-03-03 16:02:02 -08:00
app-prefetch Add missing isRootLayout when creating optimistic tree (#45899) 2023-02-14 14:06:58 +01:00
app-rendering Update some flakey test cases (#47556) 2023-03-26 23:41:15 -07:00
app-routes Move App Route handler logic into bundle (#47633) 2023-03-29 19:31:30 +00:00
app-routes-trailing-slash Fix route.js trailingSlash handling (#46185) 2023-02-21 17:19:56 -08:00
app-static Fix fetch cache config and fetch revalidates (#47573) 2023-03-27 13:08:23 -07:00
app-validation Add Zod and router state validation (#46962) 2023-03-10 13:37:45 +00:00
asset-prefix Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
async-component-preload Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
autoscroll-with-css-modules Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
back-button-download-bug Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
create-next-app-template Migrate create-next-app and e2e tests to Metadata API. (#45819) 2023-02-23 23:40:06 +00:00
create-root-layout Migrate create-next-app and e2e tests to Metadata API. (#45819) 2023-02-23 23:40:06 +00:00
dynamic Separate next/dynamic implementation for app and pages (#45565) 2023-02-04 01:45:35 +00:00
dynamic-href Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
edge-runtime-node-compatibility [edge] limit the api surface of util (#47292) 2023-03-20 10:29:00 +01:00
global-error Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
hooks Fix other case for useSelectedLayoutSegments (#47511) 2023-03-24 16:06:17 -07:00
i18n-hybrid Update failing i18n e2e deploy test (#47555) 2023-03-26 22:40:32 -07:00
import Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
interpolability-with-pages Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
layout-params Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
mdx Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> 2023-02-11 13:37:00 +01:00
metadata Add not found boundary and move head cache to app router (#47688) 2023-03-30 14:08:37 -07:00
metadata-dynamic-routes Revert "Vendor @vercel/og and expose ImageResponse (#47657" (#47711) 2023-03-30 12:24:02 -07:00
metadata-suspense Add not found boundary and move head cache to app router (#47688) 2023-03-30 14:08:37 -07:00
navigation Add default meta tags to error page (#47404) 2023-03-22 22:44:45 +01:00
next-font Remove experimental fontLoaders option from next.config.js (#46886) 2023-03-13 21:34:43 +00:00
next-image Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
not-found Add not found boundary and move head cache to app router (#47688) 2023-03-30 14:08:37 -07:00
pages-to-app-routing Add client router filter handling (#46283) 2023-02-22 22:02:31 -08:00
parallel-routes-and-interception test: disable the flaky test for parallel-routes-and-interception (#47694) 2023-03-30 15:25:51 +00:00
rewrites-redirects Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
root-layout Update flakey app dev tests (#47504) 2023-03-24 15:44:44 -07:00
root-layout-redirect Catch redirect() in root layout (#47345) 2023-03-22 09:34:50 +01:00
route-page-manifest-bug Fix manifest error when using route.js (#46102) 2023-02-18 20:31:49 +01:00
router-autoscroll Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
rsc-basic Improve client boundary source type detection (#47532)Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> 2023-03-27 19:16:23 +02:00
searchparams-static-bailout Opt-in to dynamic rendering when reading searchParams (#46205) 2023-03-16 21:46:35 +01:00
similar-pages-paths Fix conflict dev entry key between app and pages (#46832) 2023-03-07 12:27:10 -08:00
test-template/{{ toFileName name }} Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> 2023-02-11 13:37:00 +01:00
trailingslash Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
underscore-ignore-app-paths Ignore folders prefixed by underscore (_) in App Router (#47439) 2023-03-24 12:53:11 +01:00
use-params Add useParams() (#47373) 2023-03-22 09:26:19 +00:00
use-selected-layout-segment-s Fix useSelectedLayoutSegments including __PAGE__ (#47492) 2023-03-24 16:13:22 +01:00
with-babel Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00