-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.ts
executable file
·53 lines (39 loc) · 1.09 KB
/
next.config.ts
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import type { NextConfig } from 'next';
import { cpus } from 'node:os';
import { isCI } from 'next/dist/server/ci-info';
//if (process.env.NODE_ENV === 'production') {
// process.env.DEBUG = '*';
// process.env.DEBUG_HIDE_DATE = 'true';
// process.env.DEBUG_DEPTH = '3';
// process.env.DEBUG_SHOW_HIDDEN = 'true';
//}
const nextConfig = {
poweredByHeader: true,
reactStrictMode: true,
output: 'export',
productionBrowserSourceMaps: true,
/** @type {import('sass').Options} */
sassOptions: {
alertColor: true,
style: 'compressed',
},
experimental: {
cpus: isCI ? cpus().length : cpus().length - 2,
staleTimes: {
static: 24*60*60,
},
turbo: {
},
reactCompiler: {
panicThreshold: 'NONE',
},
},
staticPageGenerationTimeout: 45 * 60,
trailingSlash: true,
images: {
unoptimized: true,
formats: ['image/avif', 'image/webp'],
},
transpilePackages: ['@wooorm/starry-night']
} as const satisfies NextConfig;
export default nextConfig;