fix(gateway): remove --dev flag from gateway startup args (#167)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Haze
2026-02-25 18:29:29 +08:00
committed by GitHub
Unverified
parent f0738af2eb
commit 2804b6da73

View File

@@ -568,7 +568,7 @@ export class GatewayManager extends EventEmitter {
// In packaged Electron app, use process.execPath with ELECTRON_RUN_AS_NODE=1 // In packaged Electron app, use process.execPath with ELECTRON_RUN_AS_NODE=1
// which makes the Electron binary behave as plain Node.js. // which makes the Electron binary behave as plain Node.js.
// In development, use system 'node'. // In development, use system 'node'.
const gatewayArgs = ['gateway', '--port', String(this.status.port), '--token', gatewayToken, '--dev', '--allow-unconfigured']; const gatewayArgs = ['gateway', '--port', String(this.status.port), '--token', gatewayToken, '--allow-unconfigured'];
if (app.isPackaged) { if (app.isPackaged) {
// Production: use Electron binary as Node.js via ELECTRON_RUN_AS_NODE // Production: use Electron binary as Node.js via ELECTRON_RUN_AS_NODE