Build fixes: offline-safe fonts, Next.js API route type updates, TS strict errors resolved, MUI import cleanup, chat markdown wrapper, Azure OpenAI typing, caching key + chapter API id types, and misc error-logging typings.

This commit is contained in:
andupetcu
2025-09-22 17:07:31 +03:00
parent 8ff02f6427
commit 7f69cbf803
26 changed files with 106 additions and 105 deletions

View File

@@ -18,7 +18,7 @@ export async function GET() {
try {
sampleUser = await prisma.$queryRaw`SELECT * FROM "User" LIMIT 1;`
} catch (e) {
sampleUser = { error: 'Could not fetch sample user: ' + e.message }
sampleUser = { error: 'Could not fetch sample user: ' + ((e as any)?.message || e) }
}
return NextResponse.json({
@@ -29,7 +29,7 @@ export async function GET() {
console.error('Schema debug error:', error)
return NextResponse.json({
error: 'Schema debug failed',
details: error.message
details: (error as any)?.message || error
}, { status: 500 })
}
}
}