-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.js
More file actions
38 lines (36 loc) · 868 Bytes
/
Copy pathnext.config.js
File metadata and controls
38 lines (36 loc) · 868 Bytes
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
/** @type {import('next').NextConfig} */
const HOST = process.env.HOST_URL
const nextConfig = {
swcMinify: true,
compiler: {
styledComponents: true,
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
images: {
domains: [
'nextpage-bucket.s3.ap-northeast-2.amazonaws.com',
'oaidalleapiprodscus.blob.core.windows.net',
'bucketnextpage.s3.ap-northeast-2.amazonaws.com',
],
loader: 'default',
},
async rewrites() {
return [
{
source: '/:path*', // 들어오는 요청 경로 패턴
destination: HOST + ':8080/:path*', // 라우팅하려는 경로
},
{
source: '/scenario/[rootId]',
destination: '/scenario?rootId=:rootId',
},
]
},
}
https: module.exports = nextConfig