Production Deployment Fixes and Enhancements #3

Merged
ilia merged 38 commits from dev into main 2026-01-04 16:37:35 -05:00
Showing only changes of commit b7c789b536 - Show all commits

View File

@ -22,9 +22,16 @@ export async function GET(request: Request) {
let session = null
let authError = null
try {
console.log("Debug endpoint: Calling auth()...")
session = await auth()
console.log("Debug endpoint: auth() returned", {
hasSession: !!session,
sessionUser: session?.user,
sessionKeys: session ? Object.keys(session) : []
})
} catch (err) {
authError = err instanceof Error ? err.message : String(err)
console.error("Debug endpoint: auth() error", authError)
}
// Try to get cookie from Next.js cookie store