fix: reuse local gateway port during development

This commit is contained in:
2026-09-20 14:54:52 +08:00
parent 26b5804092
commit 2cb22ac5e5
5 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ if (!overrides.DATABASE_URL) {
if (!overrides.CREATORHUB_CREDENTIAL_STORE_DIR) overrides.CREATORHUB_CREDENTIAL_STORE_DIR = path.join(root, ".dev-credentials");
if (!overrides.WEB_DIR) overrides.WEB_DIR = path.join(root, "web", "dist");
if (!overrides.LOG_LEVEL) overrides.LOG_LEVEL = "debug";
if (!overrides.NATIVE_GATEWAY_ENDPOINT) overrides.NATIVE_GATEWAY_ENDPOINT = "http://127.0.0.1:8081";
if (!overrides.NATIVE_GATEWAY_ENDPOINT) overrides.NATIVE_GATEWAY_ENDPOINT = "http://127.0.0.1:28187";
const env = { ...process.env, ...overrides };
const air = spawn("air", ["-c", ".air.toml", ...process.argv.slice(2)], {