Nextjs Guideline: API — Return proper Response objects. Description: Use NextResponse for API responses. Do: NextResponse.json() for JSON. Don't: Plain objects or res.json(). Good Example: return NextResponse.json({ data }). Bad Example: return { data }. Severity: Medium. Docs: .