9d2b0fc04a
This ensures we handle resolve rewrites during prefetching the same way we do during a client-transition. Previously if a rewritten source was used in an `href` neither the page bundle or SSG data if needed would be prefetched although would work correctly on a client transition. Fixes: https://github.com/vercel/next.js/issues/22441
16 lines
284 B
JavaScript
16 lines
284 B
JavaScript
export const getStaticProps = () => {
|
|
return {
|
|
props: {},
|
|
}
|
|
}
|
|
|
|
export const getStaticPaths = () => {
|
|
return {
|
|
paths: [{ params: { rest: ['one'] } }],
|
|
fallback: false,
|
|
}
|
|
}
|
|
|
|
export default function Page() {
|
|
return <p id="top-level-rest">Hello from [...rest]</p>
|
|
}
|