Skip to content

Commit 5a9a69f

Browse files
committed
fix: 대학 캐시 재검증 경로를 유니버시티 존으로 연결
1 parent 8c62ac6 commit 5a9a69f

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pnpm install
6767

6868
## University Web Revalidation
6969

70-
대학 지원 정보가 변경된 뒤 배포 없이 `university-web`의 정적 캐시를 무효화하려면 `POST /api/revalidate`를 호출한다.
70+
대학 지원 정보가 변경된 뒤 배포 없이 `university-web`의 정적 캐시를 무효화하려면 `POST /university/revalidate`를 호출한다.
7171

7272
### Environment
7373

@@ -92,7 +92,7 @@ x-revalidate-secret: ${REVALIDATE_SECRET}
9292
### Revalidate All University Pages
9393

9494
```bash
95-
curl -X POST "https://www.solid-connection.com/api/revalidate" \
95+
curl -X POST "https://www.solid-connection.com/university/revalidate" \
9696
-H "Authorization: Bearer ${REVALIDATE_SECRET}" \
9797
-H "Content-Type: application/json" \
9898
--data '{"scope":"university"}'
@@ -101,7 +101,7 @@ curl -X POST "https://www.solid-connection.com/api/revalidate" \
101101
### Revalidate Home University Pages
102102

103103
```bash
104-
curl -X POST "https://www.solid-connection.com/api/revalidate" \
104+
curl -X POST "https://www.solid-connection.com/university/revalidate" \
105105
-H "Authorization: Bearer ${REVALIDATE_SECRET}" \
106106
-H "Content-Type: application/json" \
107107
--data '{"scope":"home-university","homeUniversity":"kyunghee"}'
@@ -110,7 +110,7 @@ curl -X POST "https://www.solid-connection.com/api/revalidate" \
110110
### Revalidate One Path
111111

112112
```bash
113-
curl -X POST "https://www.solid-connection.com/api/revalidate" \
113+
curl -X POST "https://www.solid-connection.com/university/revalidate" \
114114
-H "Authorization: Bearer ${REVALIDATE_SECRET}" \
115115
-H "Content-Type: application/json" \
116116
--data '{"scope":"path","path":"/university/kyunghee"}'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { POST } from "../../api/revalidate/route";

apps/web/next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ const nextConfig = {
8484
source: "/university/monitoring",
8585
destination: `${universityWebDomain}/university/monitoring`,
8686
},
87+
{
88+
source: "/university/revalidate",
89+
destination: `${universityWebDomain}/university/revalidate`,
90+
},
8791
{
8892
source: "/university",
8993
destination: `${universityWebDomain}/university`,

docs/university-multizone-deployment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
### `apps/university-web`
2525

2626
- `/university`
27+
- `/university/revalidate`
2728
- `/university/search`
2829
- `/university/:homeUniversity`
2930
- `/university/:homeUniversity/search`

0 commit comments

Comments
 (0)