-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
56 lines (53 loc) ยท 1.37 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
appDir: true,
typedRoutes: true,
},
compiler: {
styledComponents: true,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'pump-img-bucket.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/store/**'
},
{
protocol: 'https',
hostname: 'pump-img-bucket.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**'
}
]
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
})
return config
},
env: {
NTS_API_BASE_URL: process.env.NTS_API_BASE_URL,
NTS_API_KEY: process.env.NTS_API_KEY,
S3_UPLOAD_KEY: process.env.S3_UPLOAD_KEY,
S3_UPLOAD_URL: process.env.S3_UPLOAD_URL,
S3_UPLOAD_SECRET: process.env.S3_UPLOAD_SECRET,
S3_UPLOAD_BUCKET: process.env.S3_UPLOAD_BUCKET,
S3_UPLOAD_REGION: process.env.S3_UPLOAD_REGION,
API_BASE_URL: process.env.API_BASE_URL,
KAKAO_CLIENT_ID: process.env.KAKAO_CLIENT_ID,
KAKAO_CLIENT_SECRET: process.env.KAKAO_CLIENT_SECRET,
KAKAO_MAP_REST_KEY: process.env.KAKAO_MAP_REST_KEY,
NAVER_CLIENT_ID: process.env.NAVER_CLIENT_ID,
NAVER_CLIENT_SECRET: process.env.NAVER_CLIENT_SECRET,
BASE_URL: process.env.BASE_URL,
}
};
module.exports = nextConfig;