-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
39 lines (36 loc) · 970 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
29
30
31
32
33
34
35
36
37
38
39
/** @type {import('next').NextConfig} */
const nextConfig = {
// avoid weird behavior related to component unmounting (React95 related)
reactStrictMode: false,
swcMinify: true,
images: {
// XXX: not sure if this needs to be off
disableStaticImages: true
},
transpilePackages: ['@react95/core', '@react95/icons'],
webpack: (config, options) => {
config.output.assetModuleFilename = 'static/[hash][ext]';
config.module.rules.push(
{
test: /\.(eot|ttf|woff|woff2|png|svg)$/,
type: 'asset/resource',
generator: {
filename: 'static/[hash][ext]',
},
},
{
test: /\.(txt)$/,
type: 'asset/source'
}
)
// both of these are necessary for integrating v86
config.plugins.push(
new options.webpack.DefinePlugin({
'DEBUG': false,
})
)
config.resolve.fallback = { fs: false };
return config;
}
}
module.exports = nextConfig;