Remove webpack customization
This commit is contained in:
parent
8a74a06572
commit
8bad6559a6
@ -35,13 +35,6 @@ const nextConfig = {
|
||||
.concat(createRemotePattern(HOSTNAME_AWS_S3)),
|
||||
minimumCacheTTL: 31536000,
|
||||
},
|
||||
webpack: (config) => {
|
||||
config.optimization ??= {};
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
config.optimization.minimize = false;
|
||||
}
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user