- 웹훅 URL을 https://admin.youtooplay.com/webhook로 변경 - Nginx 리버스 프록시 설정 파일 추가 - 배포 가이드 업데이트
This commit is contained in:
11
middleware/guest.ts
Normal file
11
middleware/guest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default defineNuxtRouteMiddleware((to, from) => {
|
||||
// 클라이언트 사이드에서만 실행
|
||||
if (process.server) return
|
||||
|
||||
const token = useCookie('auth-token')
|
||||
|
||||
// 이미 로그인된 사용자는 대시보드로 리다이렉션
|
||||
if (token.value) {
|
||||
return navigateTo('/dashboard')
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user