import type { NextConfig } from "next"; const securityHeaders = [ { 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: "camera=(), microphone=(self), geolocation=(), interest-cohort=()", }, ]; const nextConfig: NextConfig = { output: "standalone", // sherpa-onnx-node는 네이티브 애드온이라 번들링하면 안 된다. serverExternalPackages: ["sherpa-onnx-node"], async headers() { return [ { source: "/(.*)", headers: securityHeaders, }, ]; }, }; export default nextConfig;