diff --git a/.env.example b/.env.example index 904a56db11..2b2a9ddd6f 100644 --- a/.env.example +++ b/.env.example @@ -71,6 +71,10 @@ PORT=20128 # API_HOST=0.0.0.0 # DASHBOARD_PORT=20128 +# Use Turbopack in local dev. Next 16.2.4 can fail to compile next/font/google +# through the custom dev runner without this on Windows. +OMNIROUTE_USE_TURBOPACK=1 + # Docker production port mappings (docker-compose.prod.yml only). # These set the HOST-side published ports. Container ports use PORT/API_PORT. # PROD_DASHBOARD_PORT=20130 diff --git a/open-sse/executors/codex.ts b/open-sse/executors/codex.ts index 241b25afc4..fd0c12a849 100644 --- a/open-sse/executors/codex.ts +++ b/open-sse/executors/codex.ts @@ -10,7 +10,7 @@ import { PROVIDERS } from "../config/constants.ts"; import { getCodexClientVersion, getCodexUserAgent } from "../config/codexClient.ts"; import { getAccessToken } from "../services/tokenRefresh.ts"; import { getThinkingBudgetConfig, ThinkingMode } from "../services/thinkingBudget.ts"; -import { getCorsOrigin } from "../utils/cors.ts"; +import { CORS_HEADERS } from "../utils/cors.ts"; import { createRequire } from "module"; // ─── wreq-js lazy loader ─────────────────────────────────────────────────── @@ -65,7 +65,7 @@ function codexWebSocketUnavailableResponse(): Response { status: 503, headers: { "Content-Type": "application/json", - "Access-Control-Allow-Origin": getCorsOrigin(), + ...CORS_HEADERS, }, } );