c7672e538a
* Added loggin for the onboarding flow. * Logging for potential errors * feat: enhance onboarding error logging with server-side capture * Update app/(onboarding)/onboarding/page.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
import { NextResponse } from 'next/server'
|
|
|
|
export async function POST(request: Request) {
|
|
try {
|
|
const { message, extra } = await request.json()
|
|
|
|
// This console.error runs server-side → visible in Vercel Logs
|
|
console.error('[onboarding]', message, extra ? JSON.stringify(extra) : '')
|
|
|
|
return NextResponse.json({ ok: true })
|
|
} catch {
|
|
return NextResponse.json({ ok: false }, { status: 400 })
|
|
}
|
|
}
|