completed middleware

This commit is contained in:
2023-10-20 17:18:36 -07:00
parent 07337a6cfc
commit ed2ebe41e6
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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();