completed middleware
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ export async function middleware(req) {
|
||||
}
|
||||
|
||||
if (authenticationPages.includes(pathname) && !authenticated) {
|
||||
return NextResponse.redirect(new URL("/auth/", origin));
|
||||
return NextResponse.redirect(new URL("/auth/login", origin));
|
||||
}
|
||||
|
||||
return NextResponse.next();
|
||||
|
||||
Reference in New Issue
Block a user