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
+1 -1
View File
@@ -9,7 +9,7 @@ SIGNED_URL_TTL_SECONDS=900
AUTH_SESSION_TTL_SECONDS=2592000
UPLOAD_MAX_BYTES=52428800
PORT=8080
CORS_ORIGINS=http://localhost:5173
CORS_ORIGINS=http://localhost:5175,http://localhost:5176
LOG_LEVEL=info
ADMIN_ACCOUNT=admin
ADMIN_PASSWORD=admin-secret-change-me
+3 -3
View File
@@ -1,20 +1,20 @@
import { defineConfig, devices } from '@playwright/test';
// 冒烟占位(Task 5):真实旅程(活动页/瀑布流/大图/admin 联调)随 Task 6-8/11 扩充。
// webServer 自动拉起 vite dev(5173,/v1 代理 → 127.0.0.1:8080),本地已有实例则复用。
// webServer 自动拉起 vite dev(5175,/v1 代理 → 127.0.0.1:8080),本地已有实例则复用。
export default defineConfig({
testDir: './e2e',
timeout: 30_000,
fullyParallel: true,
reporter: [['list']],
use: {
baseURL: 'http://127.0.0.1:5173',
baseURL: 'http://127.0.0.1:5175',
trace: 'on-first-retry',
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
webServer: {
command: 'pnpm run dev',
url: 'http://127.0.0.1:5173',
url: 'http://127.0.0.1:5175',
reuseExistingServer: true,
timeout: 60_000,
},
+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)