Files

26 lines
987 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
// Kein next/image im Einsatz (nur plain <img>); Optimizer deaktivieren,
// damit der /_next/image-Endpunkt sharp gar nicht erst lädt.
images: { unoptimized: true },
async headers() {
return [
{
source: "/:path*",
headers: [
// MIME-Sniffing verbieten (Bypässe bei Datei-Downloads erschweren)
{ key: "X-Content-Type-Options", value: "nosniff" },
// Kein Einbetten in fremde Seiten (Clickjacking-Schutz)
{ key: "X-Frame-Options", value: "DENY" },
// Referrer nur same-origin bzw. downgrade-sicher senden
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
// Browser-APIs einschränken, die die App nicht braucht
{ key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=()" },
],
},
];
},
};
export default nextConfig;