import type { NextConfig } from "next"; const nextConfig: NextConfig = { // Standalone-Build für ein schlankes Runtime-Image im Dockerfile. output: "standalone", reactStrictMode: true, // Keine externen CDNs: Bilder kommen ausschließlich aus MinIO bzw. lokal. images: { remotePatterns: [] }, serverExternalPackages: ["@prisma/client", "bcryptjs", "minio", "bullmq"], eslint: { ignoreDuringBuilds: true }, // Die Entwicklungsanzeige unten links wuerde in den Dokumentationsbildern // mitlaufen. Sie betrifft ohnehin nur "next dev". devIndicators: false, async headers() { return [ { source: "/:path*", headers: [ { key: "X-Content-Type-Options", value: "nosniff" }, { key: "X-Frame-Options", value: "DENY" }, { key: "Referrer-Policy", value: "no-referrer" }, // Keine Telemetrie, keine externen Fonts/CDNs. { key: "Permissions-Policy", value: "geolocation=(self), camera=(self), microphone=()" }, ], }, ]; }, }; export default nextConfig;