| const API_BASE = process.env.API_BASE_URL || ''; | |
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| output: 'standalone', | |
| async rewrites() { | |
| if (!API_BASE) return []; | |
| return [ | |
| { | |
| source: '/api/:path*', | |
| destination: `${API_BASE}/api/:path*`, | |
| }, | |
| ]; | |
| }, | |
| }; | |
| export default nextConfig; | |