Sanitized mirror from private repository - 2026-04-18 11:19:59 UTC
This commit is contained in:
16
dashboard/ui/next.config.ts
Normal file
16
dashboard/ui/next.config.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
async rewrites() {
|
||||
const backend = process.env.BACKEND_URL || "http://localhost:18888";
|
||||
return [
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: `${backend}/api/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user