Skip to content

Commit 86be429

Browse files
alswlcursoragent
andcommitted
fix: disable mock in CI to fix path-to-regexp compatibility in E2E
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c707939 commit 86be429

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.umirc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default defineConfig({
66
model: {},
77
initialState: {},
88
request: {},
9+
// CI/E2E 时关闭 mock,避免 path-to-regexp 版本冲突导致 dev 服务器报错
10+
mock: process.env.CI ? false : undefined,
911
layout: {
1012
title: 'dbml-editor - free online DBML editor',
1113
locale: false,

0 commit comments

Comments
 (0)