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

@@ -7,7 +7,7 @@
* - Bun 运行时优化 (nitro preset: 'bun')
* - 静态资源内联 (serveStatic: 'inline')
* - React Compiler 自动优化 (无需手动 memo)
* - 端口从环境变量 PROJECT_SERVER_PORT 读取 (默认 3000)
* - 端口默认 13098
*/
import tailwindcss from '@tailwindcss/vite'
import { devtools as tanstackDevtools } from '@tanstack/devtools-vite'
@@ -24,8 +24,8 @@ import tsconfigPaths from 'vite-tsconfig-paths'
/** 加载 .env 文件中的环境变量 */
const envVars = loadEnv('development', process.cwd(), '')
/** 开发服务器端口 (从环境变量读取,默认 3000) */
const DEV_PORT = Number(envVars.PROJECT_SERVER_PORT) || 3000
/** 开发服务器端口 (从环境变量读取,默认 13098) */
const DEV_PORT = 13098
export default defineConfig({
// 禁止清屏,方便与 Tauri 开发工具共用终端