fix: improve auth handling and logging
This commit is contained in:
@@ -34,7 +34,9 @@ export const middleware: NextMiddleware = async (request) => {
|
||||
nextUrlClone.hostname = publicUrl.hostname
|
||||
|
||||
const overviewUrl = overview[lang]
|
||||
return NextResponse.redirect(new URL(overviewUrl, nextUrlClone))
|
||||
const redirectUrl = new URL(overviewUrl, nextUrlClone)
|
||||
console.log(`[myPages] redirecting to: ${redirectUrl}`)
|
||||
return NextResponse.redirect(redirectUrl)
|
||||
}
|
||||
|
||||
const pathNameWithoutLang = nextUrl.pathname.replace(`/${lang}`, "")
|
||||
|
||||
Reference in New Issue
Block a user