-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
134 lines (120 loc) · 3.59 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/** @type {import('next').NextConfig} */
const APIURL = "3.35.61.159";
const nextConfig = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "http",
hostname: "3.35.61.159",
},
],
},
async redirects() {
return [
/* 멋쟁이 사자처럼 동국대학교 공식 홈페이지 URL */
{
source: "/dgu-likelion-home",
destination: "https://likeliondgu.oopy.io/",
permanent: false,
},
/* 멋쟁이 사자처럼 동국대학교 인스타 계정 연결 URL */
{
source: "/dgu-likelion-instar",
destination: "https://instagram.com/likelion_dongguk?igshid=MzRlODBiNWFlZA==",
permanent: false,
},
/* 멋쟁이 사자처럼 동국대학교 깃허브 링크 URL */
{
source: "/dgu-likelion-github",
destination: "https://github.com/LikeLion-at-DGU",
permanent: false,
},
/* 멋쟁이 사자처럼 동국대학교 깃허브 링크 URL */
{
source: "/dgu-bamboo",
destination: "https://instagram.com/dgu_bamboo?igshid=MzRlODBiNWFlZA==",
permanent: false,
},
/* 축기단 인스타 계정 연결 URL */
{
source: "/dgu-stuco",
destination: "https://instagram.com/donggukstuco?igshid=MzRlODBiNWFlZA==",
permanent: false,
},
/* SK DEVOCEAN 링크 URL */
{
source: "/skdevocean",
destination: "https://instagram.com/skdevocean?igshid=MzRlODBiNWFlZA==",
permanent: false,
},
];
},
async rewrites() {
return [
// Booth 관련 API
{
// 부스 리스트 (GET)
source: "/store/list",
destination: `http://${APIURL}/api/booths`,
},
{
// 각 부스 디테일 정보 (GET)
source: "/store/info/:store_id",
destination: `http://${APIURL}/api/booths/:store_id`,
},
{
// 부스 좋아요 TOP3 or TOP5 (GET)
source: "/store/top",
destination: `http://${APIURL}/api/booths/hot`,
},
{
// 각 부스 랜덤 추천 (GET)
source: "/store/random",
destination: `http://${APIURL}/api/booths/recommend`,
},
// Booth 댓글 관련 API
{
// 각 부스 댓글 리스트 (GET)
// 각 부스 댓글 생성 (POST)
source: "/store/:store_id/respond",
destination: `http://${APIURL}/api/booths/:store_id/comments`,
},
{
// 각 부스 댓글 삭제 (DELETE)
source: "/respond/:respond_id",
destination: `http://${APIURL}/api/comments/:respond_id`,
},
// Booth 댓글의 답글 관련 API
{
// 각 댓글의 답글 생성 (POST)
source: "/respond/:respond_id/reaction",
destination: `http://${APIURL}/api/comments/:respond_id/replies`,
},
{
// 각 댓글의 답글 삭제 (DELETE)
source: "/reaction/:reaction_id",
destination: `http://${APIURL}/api/replies/:reaction_id`,
},
// Booth 좋아요 관련 API
{
// 좋아요 생성 (POST)
// 좋아요 삭제 (DELETE)
source: "/store/:store_id/love",
destination: `http://${APIURL}/api/booths/:store_id/likes`,
},
// Notice 관련 API
{
// 공지 리스트 (GET)
source: "/alarm",
destination: `http://${APIURL}/api/notifications`,
},
{
// 공지 디테일 (GET)
source: "/alarm/:alarm_id",
destination: `http://${APIURL}/api/notifications/:alarm_id`,
},
];
},
};
module.exports = nextConfig;