feat(mcp): подготовить сервер и доступ к приёмке

This commit is contained in:
Denozordec committed 2026-11-03 03:12:03 +07:00
commit bf3d50e1ff
3835 files changed
+537122

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import type { NextConfig } from "next";
import { backendInternalUrl } from "./lib/backend-internal-url";
const nextConfig: NextConfig = {
distDir: process.env.MM_NEXT_DIST_DIR || ".next",
output: "standalone",
experimental: {
proxyClientMaxBodySize: "512mb",
// Speed commands include RouterOS waits and post-test Ping; the UI allows 120s.
// Let the backend return its structured outcome before the rewrite times out.
proxyTimeout: 180_000,
},
async rewrites() {
const backendUrl = backendInternalUrl();
return [
{ source: "/health", destination: `${backendUrl}/health` },
{ source: "/api/:path*", destination: `${backendUrl}/api/:path*` },
];
},
};
export default nextConfig;