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
13 lines
200 B
JavaScript
13 lines
200 B
JavaScript
module.exports = {
|
|
generateBuildId() {
|
|
return 'test-build'
|
|
},
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: '/rewrite-me',
|
|
destination: '/ssg/dynamic/one',
|
|
},
|
|
]
|
|
},
|
|
}
|