1435de15bc
This ensures we load `_document` then `_app` and then the page's component in all cases which matches behavior between the serverless target and the default server target. Additional tests to ensure this order is followed has been added to prevent regression. Fixes: https://github.com/vercel/next.js/issues/22732
12 lines
219 B
JavaScript
12 lines
219 B
JavaScript
module.exports = {
|
|
// ensure incorrect target is overridden by env
|
|
target: 'serverless',
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: '/some-catch-all/:path*',
|
|
destination: '/',
|
|
},
|
|
]
|
|
},
|
|
}
|