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>