Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(env-repair): replace dynamic import with static to fix prod build (#1601)
Jean Brito17b5a8540edd
diff --git a/src/app/api/system/env/repair/route.ts b/src/app/api/system/env/repair/route.tsindex f35dcd6498..64ed9c617e 100644--- a/src/app/api/system/env/repair/route.ts+++ b/src/app/api/system/env/repair/route.ts@@ -7,14 +7,13 @@*/import { copyFileSync, existsSync } from "node:fs";import { join } from "node:path";-import { pathToFileURL } from "node:url";import { NextResponse } from "next/server";import { isAuthenticated } from "@/shared/utils/apiAuth";--const SYNC_HELPER_PATH = join(process.cwd(), "scripts/sync-env.mjs");+// @ts-expect-error - .mjs without types+import { getEnvSyncPlan, syncEnv } from "../../../../../../scripts/sync-env.mjs";async function loadSyncHelpers() {- return import(pathToFileURL(SYNC_HELPER_PATH).href);+ return { getEnvSyncPlan, syncEnv };}function createEnvBackup() {