import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", images: { remotePatterns: [ { protocol: "https", hostname: "**" }, { protocol: "http", hostname: "**" }, ], }, async rewrites() { const backend = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8080"; return [ { source: "/uploads/:path*", destination: `${backend}/uploads/:path*` }, ]; }, }; export default nextConfig;