fix: remove hardcoded SKIP_PLC=1, respect .env
This commit is contained in:
1 parent
8515ab471b
commit
4e02b8605d
1 file changed
+1
-1
+1
-1
@@ -28,7 +28,7 @@ function startBackend(): void {
|
|||||||
backend = spawn('npx', ['tsx', 'src/index.ts'], {
|
backend = spawn('npx', ['tsx', 'src/index.ts'], {
|
||||||
cwd: PROJECT_DIR,
|
cwd: PROJECT_DIR,
|
||||||
stdio: ['ignore', 'pipe', 'pipe'],
|
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 文件
|
shell: process.platform === 'win32', // Windows 需要 shell 运行 .cmd 文件
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user