Harden authentication, tenant isolation and security boundaries

This commit is contained in:
t.indorf
2026-10-09 22:49:55 +02:00
parent ec3f4f933d
commit 656ada80bd
71 changed files with 3107 additions and 1200 deletions
+22 -1
View File
@@ -1,12 +1,33 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
experimental: { serverActions: { bodySizeLimit: "26mb" } },
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" },
{ key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=()" },
...(process.env.NODE_ENV === "production" ? [{ key: "Strict-Transport-Security", value: "max-age=31536000" }] : []),
] }];
},
images: {
localPatterns: [
{ pathname: "/landing/**", search: "" },
{ pathname: "/og-image.png", search: "" },
{ pathname: "/_next/static/media/**", search: "" },
],
maximumDiskCacheSize: 128 * 1024 * 1024,
maximumResponseBody: 10 * 1024 * 1024,
maximumRedirects: 0,
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
pathname: "/**",
port: "",
pathname: "/photo-1503454537195-1dcabb73ffb9",
search: "?auto=format&fit=crop&w=2400&q=86",
},
],
},