-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
60 lines (46 loc) · 1.26 KB
/
next.config.js
File metadata and controls
60 lines (46 loc) · 1.26 KB
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
54
55
56
57
58
59
60
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';
}
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: true,
reactStrictMode: true,
productionBrowserSourceMaps: true,
/** @type {import('sass').Options} */
sassOptions: {
alertColor: true,
style: 'compressed',
},
experimental: {
turbo: {
rules: { // load XSD files as strings
'*.xsd': {
as: 'string',
loaders: ['raw-loader'],
}
},
},
//esmExternals: 'loose',
},
staticPageGenerationTimeout: 600,
transpilePackages: ['fomod'],
trailingSlash: false,
output: 'export',
images: {
unoptimized: true,
formats: ['image/avif', 'image/webp'],
},
webpack: (config) => {
config.experiments = { ...config.experiments, topLevelAwait: true };
// load XSD files as strings
config.module.rules.push({
test: /\.xsd$/,
use: 'raw-loader',
});
return config;
},
};
export default nextConfig;