We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94fdb37 commit 2bc167eCopy full SHA for 2bc167e
2 files changed
.babelrc
next.config.mjs
@@ -3,8 +3,25 @@ const nextConfig = {
3
reactStrictMode: false,
4
swcMinify: true,
5
images: {
6
- domains: ["lettering-images.s3.amazonaws.com"],
+ domains: ['lettering-images.s3.amazonaws.com']
7
},
8
+ webpack: (config, { isServer }) => {
9
+ if (!isServer) {
10
+ config.optimization.minimize = true;
11
+ config.module.rules.push({
12
+ test: /\.(js|ts|tsx)$/,
13
+ exclude: /node_modules/,
14
+ use: {
15
+ loader: 'babel-loader',
16
+ options: {
17
+ presets: ['next/babel'],
18
+ plugins: [['transform-remove-console']]
19
+ }
20
21
+ });
22
23
+ return config;
24
25
};
26
27
export default nextConfig;
0 commit comments