-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
46 lines (42 loc) · 1003 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 intercept = require('intercept-stdout');
const withPWA = require('next-pwa');
const withPlugins = require('next-compose-plugins');
// safely ignore recoil stdout warning messages
function interceptStdout(text) {
if (text.includes('Duplicate atom key')) {
return '';
}
return text;
}
// Intercept in dev and prod
intercept(interceptStdout);
const nextConfig = {
reactStrictMode: true,
compiler: {
styledComponents: true,
},
images: {
domains: ['firebasestorage.googleapis.com', 'k.kakaocdn.net', '5gzoo.s3.ap-northeast-2.amazonaws.com'],
deviceSizes: [360, 414, 480],
imageSizes: [16, 32, 48, 64, 96, 128, 256],
minimumCacheTTL: 31536000,
formats: ['image/webp'],
},
webpack(config) {
return config;
},
};
module.exports = withPlugins([
[
withPWA,
{
pwa: {
// dest: 'public',
disable: process.env.NODE_ENV === 'development',
register: true,
sw: '/sw.js',
},
},
],
nextConfig,
]);