import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", images: { localPatterns: [ { pathname: "/images/**", search: "?v=*", }, { pathname: "/images/**", }, ], remotePatterns: [ { hostname: "localhost", }, ], }, async rewrites() { return [ { source: "/uploads/:path*", destination: "/api/uploads/:path*", }, ]; }, async headers() { return [ { source: "/images/:path*", headers: [ { key: "Cache-Control", value: "public, max-age=31536000, immutable", }, ], }, ]; }, }; export default nextConfig;