mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
# v0.4.62 (2026-05-26)
## Fixes - Codex: auto-retry when upstream drops mid-stream (no more hangs) - Codex: fix random 400/404 errors, tool-calling failures, and unstable prompt cache - MITM: support Antigravity 2.x - Sanitize Read tool args to prevent retry loops from non-Anthropic models (#1144) - Implement json_schema fallback for OpenAI-compatible providers without native Structured Output (#1343) - Strip empty Read pages argument in OpenAI-to-Claude translator (#1354) - Forward Gemini output dimensions for embeddings (#1366) - Resolve setState-in-effect errors in dashboard components (#1362) - Gemini CLI: reuse stored OAuth project IDs for quota checks and show clearer setup guidance when the project is missing (#1271, #1428)
This commit is contained in:
Vendored
+6
-1
@@ -1,7 +1,12 @@
|
||||
import initializeApp from "./initializeApp.js";
|
||||
|
||||
// Skip during Next.js build/prerender — bootstrap would download cloudflared, init DNS, etc.
|
||||
const isBuildPhase = process.env.NEXT_PHASE === "phase-production-build"
|
||||
|| process.env.NEXT_PHASE === "phase-export"
|
||||
|| process.env.NEXT_PHASE === "phase-static";
|
||||
|
||||
// Server-only singleton: guard via global so HMR / re-imports don't double-init
|
||||
if (typeof window === "undefined" && !global.__appBootstrapped) {
|
||||
if (typeof window === "undefined" && !isBuildPhase && !global.__appBootstrapped) {
|
||||
global.__appBootstrapped = true;
|
||||
initializeApp().catch((e) => console.error("[Bootstrap] init failed:", e.message));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user