-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
53 lines (52 loc) · 1.21 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
compiler: {
emotion: true,
},
images: {
deviceSizes: [361, 480],
imageSizes: [242, 358],
domains: [
'https://livable-final.s3.ap-northeast-2.amazonaws.com',
'img1.kakaocdn.net',
],
remotePatterns: [
{
protocol: 'https',
hostname: 'livable-final.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'dummyimage.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'img1.kakaocdn.net',
port: '',
pathname: '/**',
},
],
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});
return config;
},
// env 환경변수 load
env: {
API_BASE_URL: process.env.NEXT_PUBLIC_API_URL,
WEATHER_API_KEY: process.env.WEATHER_API_KEY,
WEATHER_BASE_URL: process.env.WEATHER_BASE_URL,
MEMBER_TOKEN: process.env.NEXT_MEMBER_TOKEN,
VISITOR_TOKEN: process.env.NEXT_VISITOR_TOKEN,
},
};
module.exports = nextConfig;