Skip to content

Commit

Permalink
test push
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Jul 11, 2024
1 parent eaab738 commit b2cd7c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function middleware(request: NextRequest) {
return NextResponse.redirect(new URL('/login', request.url));
}


// 공용 경로에 접근하려고 하지만 토큰이 있는 경우
if (token && publicRoutes.some((route) => currentPath.startsWith(route))) {
return NextResponse.redirect(new URL('/', request.url));
Expand Down

0 comments on commit b2cd7c8

Please sign in to comment.