-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
28 lines (26 loc) · 720 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/** @type {import('next').NextConfig} */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
const MS_PER_SECOND = 1000;
const SECONDS_PER_DAY = 86400;
const nextConfig = {
async rewrites() {
return [
{
source: '/:path*',
destination: '/',
},
];
},
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
onDemandEntries: {
// period (in ms) where the server will keep pages in the buffer
maxInactiveAge: SECONDS_PER_DAY * MS_PER_SECOND,
// number of pages that should be kept simultaneously without being disposed
pagesBufferLength: 100,
},
};
module.exports = nextConfig;