c792317295
Adds an err.sh link to the production build missing message. Also clears up `valid` as `production`. Also fixes an edge case where an unhelpful error would be thrown because we checked for `.next` instead of `.next/BUILD_ID` Added the out directory location as the list line during export to make sure people know where the files are output. Fixes #19778 Fixes #19788
39 lines
820 B
JavaScript
39 lines
820 B
JavaScript
module.exports = {
|
|
onDemandEntries: {
|
|
// Make sure entries are not getting disposed.
|
|
maxInactiveAge: 1000 * 60 * 60,
|
|
},
|
|
rewrites() {
|
|
// add a rewrite so the code isn't dead-code eliminated
|
|
return [
|
|
{
|
|
source: '/some-rewrite',
|
|
destination: '/',
|
|
},
|
|
]
|
|
},
|
|
redirects() {
|
|
return [
|
|
{
|
|
source: '/redirect/me/to-about/:lang',
|
|
destination: '/:lang/about',
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/nonexistent',
|
|
destination: '/about',
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/shadowed-page',
|
|
destination: '/about',
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/redirect-query-test/:path',
|
|
destination: '/about?foo=:path',
|
|
permanent: false,
|
|
},
|
|
]
|
|
},
|
|
}
|