chore(viewer): move dev ports to 5175/5176 (user decision; avoids cms project conflict on 5173)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-18 09:18:27 +08:00
parent f9cb72ed06
commit 04b5641901
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1,20 +1,20 @@
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vitest/config';
// dev server 固定 5173(CORS_ORIGINS 已包含);/v1 代理仅作用于 `vite dev`,
// dev server 固定 5175(CORS_ORIGINS 已包含);/v1 代理仅作用于 `vite dev`,
// build/preview 不经此处——生产由网关同源挂载 /v1。
// host 显式 127.0.0.1:Windows 下 localhost 默认可能只绑 [::1],代理/e2e 探活走 IPv4。
export default defineConfig({
plugins: [vue()],
server: {
host: '127.0.0.1',
port: 5173,
port: 5175,
strictPort: true,
proxy: {
'/v1': { target: 'http://127.0.0.1:8080', changeOrigin: true },
},
},
preview: { host: '127.0.0.1', port: 5173, strictPort: true },
preview: { host: '127.0.0.1', port: 5175, strictPort: true },
test: {
environment: 'jsdom',
// 仅收集组件/单元测试;e2e/ 归 Playwright(test:e2e)