mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
For intercepting dynamic routes we do prerender `.prefetch.rsc`, as well as `.segment.rsc` files if `clientSegmentCache` is enabled. However, we omitted adding those routes to the prerender manifest, which resulted in server errors when looking up the RSC files. I've added two tests to verify the one-line fix, one in `test/e2e/app-dir/parallel-routes-and-interception` (relevant when tests are run with `__NEXT_EXPERIMENTAL_PPR=true`), and one in `test/e2e/app-dir/segment-cache/basic` (has `dynamicIO` and `clientSegmentCache` enabled). Both tests are written in the style of the existing tests in the respective test suites. --------- Co-authored-by: Jimmy Lai <[email protected]>
19 lines
383 B
JavaScript
19 lines
383 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<h1 id="photos-page">Photos</h1>
|
|
<ul>
|
|
{Array.from({ length: 3 }).map((_, i) => (
|
|
<li key={i}>
|
|
<Link href={`/intercepting-routes-dynamic-prerendered/photos/${i}`}>
|
|
Link {i}
|
|
</Link>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</>
|
|
)
|
|
}
|