rsnext/test/integration/preload-viewport/next.config.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

13 lines
200 B
JavaScript

module.exports = {
generateBuildId() {
return 'test-build'
},
rewrites() {
return [
{
source: '/rewrite-me',
destination: '/ssg/dynamic/one',
},
]
},
}