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
build(next): tighten standalone tracing and ignore runtime fs lookups
diegosouzapw4ea123a2c07c
diff --git a/next.config.mjs b/next.config.mjsindex fc6a4d2d6c..db1017ae84 100644--- a/next.config.mjs+++ b/next.config.mjs@@ -17,7 +17,18 @@ const nextConfig = {outputFileTracingExcludes: {// Planning/task docs are not runtime assets and can break standalone copies// when broad fs/path tracing pulls the whole repository into the NFT graph.- "/*": ["./_tasks/**/*"],+ "/*": [+ "./.git/**/*",+ "./_tasks/**/*",+ "./_references/**/*",+ "./_ideia/**/*",+ "./_mono_repo/**/*",+ "./coverage/**/*",+ "./test-results/**/*",+ "./playwright-report/**/*",+ "./app.__qa_backup/**/*",+ "./tests/**/*",+ ],},serverExternalPackages: ["pino",diff --git a/open-sse/services/payloadRules.ts b/open-sse/services/payloadRules.tsindex 3f3102f69d..4422476b37 100644--- a/open-sse/services/payloadRules.ts+++ b/open-sse/services/payloadRules.ts@@ -135,7 +135,7 @@ function getPayloadRulesPath() {return (process.env.OMNIROUTE_PAYLOAD_RULES_PATH ||process.env.PAYLOAD_RULES_PATH ||- path.join(process.cwd(), "config", "payloadRules.json")+ path.join(/* turbopackIgnore: true */ process.cwd(), "config", "payloadRules.json"));}diff --git a/src/app/(dashboard)/dashboard/settings/components/ProxyTab.tsx b/src/app/(dashboard)/dashboard/settings/components/ProxyTab.tsxindex 45641d5265..8fe96b9ac8 100644--- a/src/app/(dashboard)/dashboard/settings/components/ProxyTab.tsx+++ b/src/app/(dashboard)/dashboard/settings/components/ProxyTab.tsx@@ -142,11 +142,7 @@ export default function ProxyTab() {<div><p className="font-medium">{t("debugToggle")}</p></div>- <Toggle- checked={debugMode}- onChange={() => updateDebugMode(!debugMode)}- disabled={loading}- />+ <Toggle checked={debugMode} onChange={updateDebugMode} disabled={loading} /></div></Card><Card className="p-6 mt-4">diff --git a/src/app/api/openapi/spec/route.ts b/src/app/api/openapi/spec/route.tsindex ca51698fe6..c4798b3a92 100644--- a/src/app/api/openapi/spec/route.ts+++ b/src/app/api/openapi/spec/route.ts@@ -10,8 +10,8 @@ import yaml from "js-yaml";let cachedSpec: { data: any; mtime: number } | null = null;const OPENAPI_SPEC_CANDIDATES = [- path.join(process.cwd(), "docs", "openapi.yaml"),- path.join(process.cwd(), "app", "docs", "openapi.yaml"),+ path.join(/* turbopackIgnore: true */ process.cwd(), "docs", "openapi.yaml"),+ path.join(/* turbopackIgnore: true */ process.cwd(), "app", "docs", "openapi.yaml"),];export async function GET() {diff --git a/src/lib/versionManager/binaryManager.ts b/src/lib/versionManager/binaryManager.tsindex 64522d3230..1b4b86c6de 100644--- a/src/lib/versionManager/binaryManager.ts+++ b/src/lib/versionManager/binaryManager.ts@@ -69,7 +69,9 @@ async function verifyChecksum(filePath: string, expectedSha256: string): Promisefunction findBinaryInDir(dir: string): string | null {const candidates = ["cli-proxy-api", "cli-proxy-api.exe", "CLIProxyAPI", "CLIProxyAPI.exe"];for (const name of candidates) {- if (fsSync.existsSync(path.join(dir, name))) return path.join(dir, name);+ if (fsSync.existsSync(path.join(/* turbopackIgnore: true */ dir, name))) {+ return path.join(/* turbopackIgnore: true */ dir, name);+ }}return null;}@@ -146,7 +148,7 @@ export async function getCurrentBinaryPath(dataDir?: string): Promise<string | nconst symlinkPath = path.join(dir, "bin", "cliproxyapi");try {const real = await fs.realpath(symlinkPath);- return fsSync.existsSync(real) ? real : null;+ return fsSync.existsSync(/* turbopackIgnore: true */ real) ? real : null;} catch {return null;}@@ -159,7 +161,9 @@ export async function getInstalledVersions(dataDir?: string): Promise<string[]>const entries = await fs.readdir(binDir);return entries.filter(- (e) => e.startsWith("cliproxyapi-") && fsSync.statSync(path.join(binDir, e)).isDirectory()+ (e) =>+ e.startsWith("cliproxyapi-") &&+ fsSync.statSync(path.join(/* turbopackIgnore: true */ binDir, e)).isDirectory()).map((e) => e.replace("cliproxyapi-", ""));} catch {diff --git a/src/lib/zed-oauth/keychain-reader.ts b/src/lib/zed-oauth/keychain-reader.tsindex aa2b333a2b..1945806757 100644--- a/src/lib/zed-oauth/keychain-reader.ts+++ b/src/lib/zed-oauth/keychain-reader.ts@@ -209,7 +209,7 @@ export async function isZedInstalled(): Promise<boolean> {];for (const configPath of zedConfigPaths) {- if (fs.existsSync(configPath)) {+ if (fs.existsSync(/* turbopackIgnore: true */ configPath)) {return true;}}diff --git a/src/shared/utils/machineId.ts b/src/shared/utils/machineId.tsindex b1b92ac4d1..2033f61967 100644--- a/src/shared/utils/machineId.ts+++ b/src/shared/utils/machineId.ts@@ -18,7 +18,7 @@ function getMachineIdRaw(): string {}const sysRoot = process.env.SystemRoot || process.env.windir || "C:\\Windows";const regPath = `${sysRoot}\\System32\\REG.exe`;- if (existsSync(regPath)) {+ if (existsSync(/* turbopackIgnore: true */ regPath)) {const output = execFileSync(regPath,["QUERY", "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography", "/v", "MachineGuid"],@@ -59,7 +59,9 @@ function getMachineIdRaw(): string {try {for (const filePath of ["/etc/machine-id", "/var/lib/dbus/machine-id"]) {try {- const content = readFileSync(filePath, "utf8").trim().toLowerCase();+ const content = readFileSync(/* turbopackIgnore: true */ filePath, "utf8")+ .trim()+ .toLowerCase();if (content.length > 8) return content;} catch {// Try the next candidate file