fix: add missing NoteHistory migration, fix manifest 403, add API error logging
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 43s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 43s
- Commit untracked 20260428150000_add_note_history migration (creates NoteHistory table + noteHistory column) that was causing 500s in prod - Exclude static files (.json, .svg, .ico, etc.) from auth middleware to fix manifest.json 403 - Add console.error to echo API routes for production debug visibility Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -77,6 +77,7 @@ export async function GET(req: NextRequest) {
|
||||
})
|
||||
|
||||
} catch (error) {
|
||||
console.error('[/api/ai/echo/connections] error:', error)
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to fetch connections' },
|
||||
{ status: 500 }
|
||||
|
||||
@@ -32,6 +32,7 @@ export async function GET(req: NextRequest) {
|
||||
return NextResponse.json({ insight })
|
||||
|
||||
} catch (error) {
|
||||
console.error('[/api/ai/echo] GET error:', error)
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to fetch Memory Echo insight' },
|
||||
{ status: 500 }
|
||||
@@ -84,6 +85,7 @@ export async function POST(req: NextRequest) {
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.error('[/api/ai/echo] POST error:', error)
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to process request' },
|
||||
{ status: 500 }
|
||||
|
||||
Reference in New Issue
Block a user