chore: 统一开发服务器端口为 13098

- 更新 .env.example、env.ts、vite.config.ts 默认端口
- 同步更新 sidecar.rs Rust 端口常量
- 更新 README、AGENTS.md 等文档中的端口引用
This commit is contained in:
2026-01-27 11:10:21 +08:00
parent d22a0f8d69
commit f2db4bff9d
7 changed files with 24 additions and 23 deletions

View File

@@ -11,9 +11,9 @@ use tauri_plugin_shell::ShellExt;
const SIDECAR_NAME: &str = "openbridgeTokenUsageViewerServer";
/// 默认服务器端口
const DEFAULT_PORT: u16 = 3000;
const DEFAULT_PORT: u16 = 13098;
/// 从环境变量获取端口 (PROJECT_SERVER_PORT),默认 3000
/// 从环境变量获取端口 (PROJECT_SERVER_PORT),默认 13098
fn get_project_port() -> u16 {
std::env::var("PROJECT_SERVER_PORT")
.ok()