fix: add logs
This commit is contained in:
@@ -35,6 +35,8 @@ export function serverClient() {
|
||||
redirect(redirectUrl)
|
||||
}
|
||||
|
||||
console.error("Unautorized on web, redirecting to login")
|
||||
|
||||
const pathname = ctx?.pathname || "/"
|
||||
redirect(
|
||||
`/${lang}/login?redirectTo=${encodeURIComponent(`/${lang}/${pathname}`)}`
|
||||
|
||||
Reference in New Issue
Block a user