Die Anwendung nutzt ausschliesslich Route Handler, keine Server Actions. Die Option bewirkte nichts, liess Next beim Build aber "Experiments (use with caution)" ausgeben. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
15 lines
560 B
TypeScript
15 lines
560 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// "standalone" erzeugt einen self-contained Server unter .next/standalone.
|
|
// Das Docker-Image nutzt genau diesen Output; im Standalone-Betrieb ohne
|
|
// Docker stoert die Option nicht ("npm start" laeuft weiterhin ueber next start).
|
|
output: "standalone",
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
// Prisma darf nicht gebundlet werden, sonst findet der Client seine Engine nicht.
|
|
serverExternalPackages: ["@prisma/client", "prisma"],
|
|
};
|
|
|
|
export default nextConfig;
|