import { NextRequest, NextResponse } from 'next/server'

export async function POST(request: NextRequest) {
  try {
    const body = await request.json()
    // Visible directement dans `docker logs memento-web`
    console.error('[CLIENT-ERROR-REPORT]', JSON.stringify(body, null, 2))
  } catch {
    // ignore
  }
  return NextResponse.json({ ok: true })
}
