mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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
14 lines
200 B
JavaScript
14 lines
200 B
JavaScript
module.exports = {
|
|
generateBuildId() {
|
|
return 'test-build'
|
|
},
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: '/rewrite-me',
|
|
destination: '/ssg/dynamic/one',
|
|
},
|
|
]
|
|
},
|
|
}
|