fix(dev): enable Turbopack and repair Codex CORS headers (#1669)

Integrated into release/v3.7.2
This commit is contained in:
backryun
2026-04-27 20:04:27 +09:00
committed by GitHub
parent cdb271ea23
commit 021cfd791f
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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,
},
}
);