fix: add logs

This commit is contained in:
Christel Westerberg
2024-05-17 13:53:47 +02:00
parent e195f70d79
commit d5f2604ca0
3 changed files with 12 additions and 0 deletions

View File

@@ -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}`)}`