-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
46 lines (43 loc) · 980 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
44
45
46
const isProd = process.env.NODE_ENV === 'production';
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
pageExtensions: ['page.tsx', 'api.ts'],
swcMinify: true,
compiler: {
reactRemoveProperties: isProd && {
properties: ['^data-test'],
},
removeConsole: isProd && {
exclude: ['error'],
},
emotion: true,
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
};
// FIXME - 핫모듈에서 에러 발생 및 캐싱이 정상적으로 동작하지 않는 이슈 추후에 다시 적용
// module.exports = withPlugins(
// [
// [
// withPWA,
// {
// pwa: {
// disable: !isProd,
// dest: 'public',
// runtimeCaching,
// },
// },
// ],
// ],
// nextConfig,
// );
module.exports = nextConfig;