Files
MikrotikManager/next.config.ts
Denozordec 5efd0339fb
Docker images / prepare-release (push) Successful in 9s
Docker images / backend-test (push) Successful in 4m35s
Docker images / frontend-image (push) Successful in 3m29s
Docker images / updater-image (push) Successful in 41s
Docker images / netflow-agent-image (push) Successful in 34s
Docker images / backend-image (push) Successful in 1m44s
Docker images / publish-release (push) Successful in 10s
Docker images / notify-webhook (push) Successful in 2s
feat(logs): добавить раздел логов с историей и живым потоком
2026-10-16 22:13:48 +07:00

23 lines
732 B
TypeScript

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;