test: debug

This commit is contained in:
DIYgod
2023-08-21 17:02:21 +01:00
parent fdb1779f8f
commit 557eaccc7b
+5 -1
View File
@@ -44,7 +44,11 @@ export default async function middleware(req: NextRequest) {
return NextResponse.redirect(`https://${req.headers.get("host")}/feed`, 301)
}
console.debug(`${req.method} ${req.nextUrl}`)
console.debug(
`${req.method} ${req.nextUrl} ${req.url} ${req.headers} ${req.headers.get(
"x-forwarded-host",
)}`,
)
if (
pathname.startsWith("/api/") ||