-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
43 lines (39 loc) · 919 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
40
41
42
43
// const TerserPlugin = require('terser-webpack-plugin');
// /**
// * @type {import('@nx/next/plugins/with-nx').WithNxOptions}
// **/
// const nextConfig = {
// webpack: (
// config,
// { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
// ) => {
// config.optimization.minimizer = [
// new TerserPlugin({
// terserOptions: {
// keep_classnames: true,
// },
// }),
// ];
// return config;
// },
// };
/**
* The below works!
*/
module.exports = {
// ... rest of the configuration.
output: "standalone",
reactStrictMode: false,
// experimental: {
// serverMinification: false,
// },
// swcMinify: false,
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
// Important: return the modified config
config.optimization.minimize = false
return config
},
};