1eae603c0f
- improve workspace and review entry UX for uploaded contracts - stabilize shared AI Docker/frontend delivery path - adapt shared AI generation to structured JSON responses Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
457 B
TypeScript
21 lines
457 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,
|
|
output: "standalone",
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/v1/:path*",
|
|
destination: `${backendBaseUrl}/api/v1/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|