rsnext/test/integration/preload-viewport/pages/[...rest].js
JJ Kasper 9d2b0fc04a
Ensure rewrites are resolved while prefetching (#22442)
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
2021-02-24 15:37:13 +00:00

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>
}