fix: CI动态端口+超时控制,避免e2e卡死
- 后端端口随机9000-9999,前端4000-4999 - 数据库文件按端口号隔离 - vite proxy支持VITE_API_PORT环境变量 - 服务启动超时30秒,失败即退出 - Cypress: defaultCommandTimeout=5s, pageLoadTimeout=10s - 整个e2e job timeout 5分钟 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,8 +10,8 @@ export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:8000',
|
||||
'/uploads': 'http://localhost:8000'
|
||||
'/api': `http://localhost:${process.env.VITE_API_PORT || 8000}`,
|
||||
'/uploads': `http://localhost:${process.env.VITE_API_PORT || 8000}`
|
||||
}
|
||||
},
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user