Grundlage fuer Nebula, das Dashboard fuer Vibe-Coding Projekte. - Next.js 15 (App Router) mit React 19 und TypeScript im strict-Modus - Tailwind CSS 4 ueber @tailwindcss/postcss, ohne separate Config-Datei - output: "standalone", damit dasselbe Build sowohl nativ als auch im Docker-Image laeuft - Pfad-Alias @/* auf src/ - .gitattributes erzwingt LF fuer Shell-Skripte (wichtig fuers Image) - MIT-Lizenz Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
20 lines
641 B
TypeScript
20 lines
641 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,
|
|
experimental: {
|
|
// Prisma darf nicht gebundlet werden, sonst findet der Client seine Engine nicht.
|
|
serverActions: {
|
|
bodySizeLimit: "2mb",
|
|
},
|
|
},
|
|
serverExternalPackages: ["@prisma/client", "prisma"],
|
|
};
|
|
|
|
export default nextConfig;
|