Spaces:
Build error
Build error
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| reactStrictMode: true, | |
| output: 'standalone', // For Docker deployment | |
| images: { | |
| domains: [], | |
| }, | |
| eslint: { | |
| ignoreDuringBuilds: true, | |
| }, | |
| typescript: { | |
| ignoreBuildErrors: true, | |
| }, | |
| async rewrites() { | |
| return [ | |
| { | |
| source: '/api/:path*', | |
| destination: (process.env.API_URL || process.env.NEXT_PUBLIC_API_URL || 'http://backend:8000') + '/api/:path*', | |
| }, | |
| ]; | |
| }, | |
| }; | |
| module.exports = nextConfig; | |