-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 클라우드플레어 배포를 위한 경로 설정 * feat: 커피챗 홈 및 수정 페이지 경로 추가 * chore: 코드 수정
- Loading branch information
1 parent
7030216
commit 584b735
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// /coffeechat/[id] 주소로 직접 접근 시 /coffeechat/[id].html 로 보내기 | ||
export const onRequest = async (context) => { | ||
const { next, params } = context; | ||
|
||
if (/\d+/.test(`${params.id}`)) { | ||
return next('/coffeechat/[id]'); | ||
} | ||
|
||
return next(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// /coffeechat/edit/[id] 주소로 직접 접근 시 /coffeechat/edit/[id].html 로 보내기 | ||
export const onRequest = async (context) => { | ||
const { next, params } = context; | ||
|
||
if (/\d+/.test(`${params.id}`)) { | ||
return next('/coffeechat/edit/[id]'); | ||
} | ||
|
||
return next(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// /coffeechat 주소로 직접 접근 시 /coffeechat.html 로 보내기 | ||
export const onRequest = async (context) => { | ||
const { next } = context; | ||
|
||
return next('/coffeechat'); | ||
}; |