trenches / next.config.ts
Codex
sync main snapshot for HF Space
1794757
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;