Spaces:
Sleeping
Sleeping
| /** @type {import('next').NextConfig} */ | |
| const backendInternalUrl = process.env.BACKEND_INTERNAL_URL || "http://127.0.0.1:3001"; | |
| const nextConfig = { | |
| eslint: { | |
| ignoreDuringBuilds: true, | |
| }, | |
| async rewrites() { | |
| return [ | |
| { | |
| source: "/api/:path*", | |
| destination: `${backendInternalUrl}/api/:path*`, | |
| }, | |
| { | |
| source: "/uploads/:path*", | |
| destination: `${backendInternalUrl}/uploads/:path*`, | |
| }, | |
| ]; | |
| }, | |
| }; | |
| export default nextConfig; | |