import type { NextConfig } from "next"; const nextConfig: NextConfig = { reactStrictMode: true, poweredByHeader: false, output: "standalone", serverExternalPackages: ["pdf-parse", "mammoth", "xlsx", "@node-rs/argon2", "postgres"], experimental: { serverActions: { bodySizeLimit: "60mb" } }, async headers() { return [{ source: "/(.*)", headers: [ { key: "X-Frame-Options", value: "DENY" }, { key: "X-Content-Type-Options", value: "nosniff" }, { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" }, { key: "Permissions-Policy", value: "camera=(), geolocation=(), microphone=(self)" }, ] }]; }, }; export default nextConfig;