import type { NextConfig } from "next"; const nextConfig: NextConfig = { reactStrictMode: true, images: { remotePatterns: [ { protocol: "https", hostname: "**", }, ], formats: ["image/avif", "image/webp"], }, // Optimize for production poweredByHeader: false, compress: true, // Configure headers for security async headers() { return [ { source: "/:path*", headers: [ { key: "X-DNS-Prefetch-Control", value: "on", }, { key: "X-Frame-Options", value: "SAMEORIGIN", }, { key: "X-Content-Type-Options", value: "nosniff", }, { key: "Referrer-Policy", value: "origin-when-cross-origin", }, ], }, ]; }, }; export default nextConfig;