Skip to content

Commit

Permalink
test push
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Jul 12, 2024
1 parent 05d08c6 commit 2b575bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ 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 2b575bf

Please sign in to comment.