-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
51 lines (48 loc) · 1.51 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
/** @type {import('next').NextConfig} */
const path = require('path');
module.exports = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true
},
images: {
domains: [
'sodam-bucket-2.s3.ap-northeast-2.amazonaws.com',
'sodam-bucket.s3.ap-northeast-2.amazonaws.com',
'sodam-bucket-2.s3.ap-northeast-2.amazonaws.com',
'search.pstatic.net',
'source.unsplash.com',
'pcmap.place.naver.com',
'sodam-bucket-2023.s3.ap-northeast-2.amazonaws.com'
],
},
async rewrites() {
return process.env.NODE_ENV === 'development'
? [
{
source: '/api/:path*',
destination: 'https://server.sodam.me/:path*',
},
]
: [];
},
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
components: path.resolve(__dirname, 'src/components'),
hooks: path.resolve(__dirname, 'src/hooks'),
constants: path.resolve(__dirname, 'src/constants'),
public: path.resolve(__dirname, 'public'),
styles: path.resolve(__dirname, 'src/styles'),
libs: path.resolve(__dirname, 'src/libs'),
map: path.resolve(__dirname, 'src/map'),
reducers: path.resolve(__dirname, 'src/reducers'),
types: path.resolve(__dirname, 'src/types'),
app: path.resolve(__dirname, 'src/app'),
pages: path.resolve(__dirname, 'src/pages'),
features: path.resolve(__dirname, 'src/features'),
assets: path.resolve(__dirname, 'assets'),
};
return config;
},
};