Spaces:
Paused
Paused
| import type { NextConfig } from "next"; | |
| const backendProxyTarget = process.env.BACKEND_PROXY_TARGET ?? "http://127.0.0.1:8000"; | |
| const nextConfig: NextConfig = { | |
| reactStrictMode: true, | |
| turbopack: { | |
| root: process.cwd(), | |
| }, | |
| async rewrites() { | |
| return [ | |
| { | |
| source: "/backend-api/:path*", | |
| destination: `${backendProxyTarget}/:path*`, | |
| }, | |
| ]; | |
| }, | |
| }; | |
| export default nextConfig; | |