import { NextResponse } from 'next/server'; export const dynamic = 'force-dynamic'; export async function POST(req: Request) { try { const body = await req.json(); console.error('[CLIENT ERROR]', JSON.stringify(body, null, 2)); return NextResponse.json({ ok: true }); } catch { return NextResponse.json({ ok: false }, { status: 400 }); } }