import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: "https", hostname: "lh3.googleusercontent.com", pathname: "/**", }, ], }, async headers() { return [ { source: "/:path*", headers: [ { key: "X-DNS-Prefetch-Control", value: "on", }, { key: "Strict-Transport-Security", value: "max-age=63072000; includeSubDomains; preload", }, { key: "X-Content-Type-Options", value: "nosniff", }, { key: "X-Frame-Options", value: "SAMEORIGIN", }, ], }, { source: "/api/auth/:path*", headers: [ { key: "Cache-Control", value: "no-store, no-cache, must-revalidate", }, { key: "Access-Control-Allow-Credentials", value: "true", }, ], }, ]; }, }; export default nextConfig;