The Dockerfile copies /app/public into the runner image. Without the
directory existing in the build context the layer fails with "not found".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pg's Pool.query<T> requires T extends QueryResultRow. Added the
constraint and imported the type.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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>
next.config.ts is only supported in Next.js 15+. Next.js 14 requires
.js or .mjs. Also switched serverExternalPackages to the Next.js 14
experimental.serverComponentsExternalPackages key.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>