-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
50 lines (47 loc) · 1.2 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
/** @type {import('next').NextConfig} */
const path = require("path");
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
// TODO: Media server SSL 인증서 공인 인증 받고 나서 인증 무시하고 접속하는 코드 삭제하기
https: {
trustAllCertificates: true,
},
images: {
remotePatterns: [
// {
// protocol: "https",
// hostname: "uxwing.com",
// port: "",
// pathname: "/wp-content/themes/uxwing/download/**",
// },
// {
// protocol: "https",
// hostname: "studying-farmer.kr.object.ncloudstorage.com",
// port: "",
// pathname: "/**",
// },
// TODO: 위에 걸로 바꾸기
{
protocol: "https",
hostname: "**",
},
],
},
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
},
async rewrites() {
return [
{
source: "/rank-server/api/:path*",
destination: `${process.env.NEXT_PUBLIC_RANK_SERVER_BASE_URL}/:path*`,
},
{
source: "/media-router/:path*",
destination: `${process.env.NEXT_PUBLIC_MEDIA_ROUTER_BASE_URL}/:path*`,
},
];
},
};
module.exports = nextConfig;