forked from sprintPart3Team4/the-julge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
43 lines (42 loc) · 1.07 KB
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
reactStrictMode: true,
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'bootcamp-project-api.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**',
},
],
},
swcMinify: true,
async rewrites() {
return [
{
source: '/token',
destination: 'https://bootcamp-api.codeit.kr/api/2-4/the-julge/token',
},
{
source: '/users/:path*',
destination: 'https://bootcamp-api.codeit.kr/api/2-4/the-julge/users/:path*',
},
{
source: '/shops/:path*',
destination: 'https://bootcamp-api.codeit.kr/api/2-4/the-julge/shops/:path*',
},
{
source: '/notices/:path*',
destination: 'https://bootcamp-api.codeit.kr/api/2-4/the-julge/notices/:path*',
},
{
source: '/images',
destination: 'https://bootcamp-api.codeit.kr/api/2-4/the-julge/images',
},
];
},
};
export default nextConfig;