-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
39 lines (38 loc) · 979 Bytes
/
next.config.js
File metadata and controls
39 lines (38 loc) · 979 Bytes
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
module.exports = {
output: 'standalone',
async rewrites() {
return [
{
source: '/login',
destination: '/api/auth/google',
},
{
source: '/onboarding',
destination: '/onboarding/step01',
},
{
source: '/channel/add',
destination: '/channel/add/step01',
},
]
},
images: {
// remotePatterns 실험버전 끝나면 사용 고려. 포트와 프로토콜을 제한할 수 있음.
// 지금 domains는 도메인 밖에 설정 못함
// https://nextjs.org/docs/api-reference/next/image#remote-patterns
domains: [
'118.67.133.110',
'lh3.googleusercontent.com', // 구글 프로필이미지 도메인으로 변경시켜야함
'kr.object.ncloudstorage.com',
'yt3.ggpht.com',
'www.searchitfree.tk',
],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
}