refactor: 统一使用 PORT 环境变量替代 NITRO_PORT

- 将环境变量从 NITRO_PORT 更改为 PORT
- 将 sidecar 的环境变量从 NITRO_PORT 改为 PORT
This commit is contained in:
2026-01-18 15:58:27 +08:00
parent 10895b2c9f
commit 2ce049965c
2 changed files with 2 additions and 2 deletions

View File

@@ -299,7 +299,7 @@ let sidecar = app_handle
.shell()
.sidecar("server")
.expect("无法找到 server sidecar")
.env("NITRO_PORT", port.to_string());
.env("PORT", port.to_string());
// 清理进程
match event {