From 4e02b8605dca686be3c11b1c78dd077705597fb7 Mon Sep 17 00:00:00 2001 From: zlm Date: Wed, 10 Jun 2026 13:55:54 +0800 Subject: [PATCH] fix: remove hardcoded SKIP_PLC=1, respect .env --- desktop/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/main.ts b/desktop/src/main.ts index 9bc513a..f49ba0f 100644 --- a/desktop/src/main.ts +++ b/desktop/src/main.ts @@ -28,7 +28,7 @@ function startBackend(): void { backend = spawn('npx', ['tsx', 'src/index.ts'], { cwd: PROJECT_DIR, stdio: ['ignore', 'pipe', 'pipe'], - env: { ...process.env, PORT: '3000', SKIP_PLC: '1' }, + env: { ...process.env, PORT: process.env.PORT || '3000' }, shell: process.platform === 'win32', // Windows 需要 shell 运行 .cmd 文件 windowsHide: true, })