import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", images: { remotePatterns: [ { protocol: "https", hostname: "cdn.goodbrick.com.ua" }, ], }, async rewrites() { const apiUrl = process.env.LOCAL_API_URL; if (!apiUrl) return []; return [ { source: "/api/:path*", destination: `${apiUrl}/api/:path*`, }, ]; }, }; export default nextConfig;