NextResponse's BodyInit type doesn't accept Node.js Buffer directly.
Wrapping in Uint8Array satisfies the type and works at runtime.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Next.js 14 types correctly handle async server components — the
directive was unused and caused a type error during build.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>