Files
ai-contract-platform/frontend/next.config.ts
T
yuqei 3df85fdb04 feat: land phase15 legal docs and commercial ops
Includes legal document generation workflows, prompt governance runtime wiring, legal change impact scans, operation KPI dashboards, invoice files, sales follow-up events, mobile review polish, deployment automation, and updated project docs.
2026-05-21 14:42:44 +08:00

20 lines
433 B
TypeScript

import type { NextConfig } from "next";
const backendBaseUrl =
process.env.BACKEND_BASE_URL ??
(process.env.NODE_ENV === "production" ? "http://backend:8000" : "http://localhost:8000");
const nextConfig: NextConfig = {
devIndicators: false,
async rewrites() {
return [
{
source: "/api/v1/:path*",
destination: `${backendBaseUrl}/api/v1/:path*`,
},
];
},
};
export default nextConfig;