-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
42 lines (41 loc) · 974 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
module.exports = {
reactStrictMode: false,
compress: false,
swcMinify: true,
async rewrites() {
return [
{
source: '/kic-api-auth',
destination: process.env.NEXT_PUBLIC_KAKAO_API_AUTH_URL,
},
{
source: '/kic-upload/:path*',
destination: process.env.NEXT_PUBLIC_KAKAO_FILE_UPLOAD_URL+'/:path*',
},
{
source: '/api/:path*',
destination: process.env.NEXT_PUBLIC_API_URL+'/api/:path*',
},
];
},
env: {
BASE_URL: process.env.BASE_URL,
},
experimental: {
appDir: true,
},
images: {
domains: ['source.unsplash.com', 'images.unsplash.com', 'objectstorage.kr-central-1.kakaoi.io', 'k.kakaocdn.net'],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
})
return config
},
// compiler: {
// reactRemoveProperties: { properties: ['^data-testid$'] },
// },
}