-
Notifications
You must be signed in to change notification settings - Fork 7
/
next.config.js
57 lines (55 loc) · 1.32 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
images: {
domains: [
'sopt-makers.s3.ap-northeast-2.amazonaws.com',
's3.ap-northeast-2.amazonaws.com',
'makers-web-img.s3.ap-northeast-2.amazonaws.com',
'user-images.githubusercontent.com',
'avatars.githubusercontent.com',
'i.ibb.co',
'velog.velcdn.com',
'leadership.ng',
'github.githubassets.com',
'img1.daumcdn.net',
'blogfiles.pstatic.net',
'images.velog.io',
'media.disquiet.io',
'blogfiles.pstatic.net',
'dthumb-phinf.pstatic.net',
'postfiles.pstatic.net',
'images.velog.io',
'media.disquiet.io',
'scontent-ssn1-1.xx.fbcdn.net',
'storep-phinf.pstatic.net',
],
formats: ['image/avif', 'image/webp'],
deviceSizes: [428, 768, 1200, 1920],
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
});
return config;
},
async redirects() {
return [
{
source: '/review',
destination: '/blog',
permanent: false,
},
{
source: '/sopticle',
destination: '/blog',
permanent: false,
},
];
},
};
module.exports = nextConfig;