BMS/frontend/next.config.ts
2026-03-19 11:32:17 +00:00

16 lines
360 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
async rewrites() {
const backendUrl = process.env.BACKEND_INTERNAL_URL ?? "http://localhost:8000";
return [
{
source: "/api/backend/:path*",
destination: `${backendUrl}/:path*`,
},
];
},
};
export default nextConfig;