rsnext/test/integration/required-server-files/next.config.js
JJ Kasper 1435de15bc
Ensure component load order (#22731)
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
2021-03-03 19:20:48 +00:00

12 lines
219 B
JavaScript

module.exports = {
// ensure incorrect target is overridden by env
target: 'serverless',
rewrites() {
return [
{
source: '/some-catch-all/:path*',
destination: '/',
},
]
},
}