import type { NextConfig } from "next"; /** Feste Sicherheitskopfzeilen; die CSP setzt src/proxy.ts je Anfrage mit Nonce. */ const SICHERHEITS_KOPFZEILEN = [ { key: "X-Content-Type-Options", value: "nosniff" }, { key: "X-Frame-Options", value: "DENY" }, { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" }, { key: "Permissions-Policy", value: "geolocation=(), microphone=(), camera=()" }, ]; const konfiguration: NextConfig = { // Schlankes Laufzeit-Abbild für Dockerfile und LXC-Installer. output: "standalone", // ssh2 bringt optionale native Teile mit, die der Bundler nicht anfassen soll. serverExternalPackages: ["ssh2", "pg-boss", "pino"], async headers() { return [{ source: "/:pfad*", headers: SICHERHEITS_KOPFZEILEN }]; }, }; export default konfiguration;