/** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', async rewrites() { return [ { source: '/api/:path*', destination: process.env.NEXT_PUBLIC_API_URL ? `${process.env.NEXT_PUBLIC_API_URL}/api/:path*` : 'http://localhost:5000/api/:path*', }, ]; }, }; export default nextConfig;