feat: 쿠키 통한 로그인 권한 체크 구현
This commit is contained in:
@@ -135,10 +135,10 @@ export function middleware(req: NextRequest) {
|
||||
});
|
||||
}
|
||||
|
||||
if (pathname === "/") {
|
||||
return NextResponse.redirect(new URL("/pages/dashboard", req.url));
|
||||
}
|
||||
return NextResponse.next();
|
||||
// if (pathname === "/") {
|
||||
// return NextResponse.redirect(new URL("/pages/dashboard", req.url));
|
||||
// }
|
||||
// return NextResponse.next();
|
||||
}
|
||||
|
||||
export const config = {
|
||||
|
||||
Reference in New Issue
Block a user