9eceb95596
* Move outputFileTracing config up * remove old nftTracing config * remove old config Co-authored-by: Steven <steven@ceriously.com>
43 lines
932 B
JavaScript
43 lines
932 B
JavaScript
// intervals/open connections shouldn't block build from exiting
|
|
setInterval(() => {}, 250)
|
|
|
|
module.exports = {
|
|
swcMinify: true,
|
|
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,
|
|
},
|
|
]
|
|
},
|
|
}
|