-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathnext.config.js
49 lines (46 loc) · 951 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
43
44
45
46
47
48
49
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: '/coc',
destination: '/coc/purpose',
permanent: true,
},{
source: '/mypage',
destination: '/mypage/ticket',
permanent: true,
},
]
},
reactStrictMode: true,
swcMinify: true,
images: {
// TODO: domain 추후 수정하기
unoptimized: true,
domains: ['cdn.pixabay.com', '**'],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
port: '',
pathname: '**',
},
],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [{
loader: '@svgr/webpack',
options: {
icon: true,
},
}],
});
config.resolve.fallback = { fs: false, path: false };
return config;
},
};
module.exports = nextConfig;