From 76d733143a22c16f3e60b359dc6cfd5377458f00 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Sun, 25 Oct 2026 00:00:39 -0500 Subject: [PATCH] fix: build the SDK host modules in production mode --- scripts/build-sdk-host.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build-sdk-host.mjs b/scripts/build-sdk-host.mjs index 265f45075..6776a6320 100644 --- a/scripts/build-sdk-host.mjs +++ b/scripts/build-sdk-host.mjs @@ -75,6 +75,9 @@ await esbuild.build({ // so the translated locale files it would list are simply none. banner: { js: "const __termixNoGlob = () => ({});" }, define: { + // esbuild picks "development" for an unminified build, which sends core's + // requests to the Vite dev proxy on any server without a port. + "process.env.NODE_ENV": '"production"', "import.meta.glob": "__termixNoGlob", "import.meta.env.DEV": "false", "import.meta.env.PROD": "true",