fix: cleanup logs

This commit is contained in:
Matilda Landström
2024-05-22 11:11:19 +02:00
parent e65145687d
commit e3e4d6c1c8
4 changed files with 8 additions and 15 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ import type { MiddlewareMatcher } from "@/types/middleware"
export const middleware = auth(async (request) => {
const { nextUrl } = request
const lang = findLang(nextUrl.pathname)!
console.log("TestTest ", nextUrl)
const isLoggedIn = !!request.auth
const hasError = request.auth?.error