import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", async rewrites() { return [ { source: "/api/:path*", destination: `${process.env.BACKEND_URL || "http://localhost:8000"}/api/:path*`, }, ]; }, 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" }, ], }, ]; }, }; export default nextConfig;