8a55612c0d
## Feature - [x] Integration tests added - [x] Documentation added - [x] Errors have helpful link attached, see `contributing.md` Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
46 lines
1 KiB
JavaScript
46 lines
1 KiB
JavaScript
// intervals/open connections shouldn't block build from exiting
|
|
setInterval(() => {}, 250)
|
|
|
|
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,
|
|
},
|
|
]
|
|
},
|
|
images: {
|
|
// Make sure we have sane default CSP, even when SVG is enabled
|
|
dangerouslyAllowSVG: true,
|
|
},
|
|
}
|