chore: vite 固定 5175,脚本统一 --cwd,清理未用导入

This commit is contained in:
2026-10-10 01:36:57 +08:00
parent 4be0853ade
commit 8816c32025
5 changed files with 10 additions and 4 deletions
+3
View File
@@ -17,6 +17,9 @@ export default defineConfig({
},
},
server: {
// 固定开发口:避免在 5173/5174 被占时静默跳到 5175(strictPort 不自动改口)
port: 5175,
strictPort: true,
proxy: {
// 契约:/api/* 专属接口;SPA 路由不进 /api(公共约定 §2)
"/api": {