diff --git a/tests/e2e.mjs b/tests/e2e.mjs index e3aa105..73ef654 100644 --- a/tests/e2e.mjs +++ b/tests/e2e.mjs @@ -7,7 +7,7 @@ import { chromium } from 'playwright'; import { mkdirSync } from 'node:fs'; -const BASE = 'http://127.0.0.1:18743'; +const BASE = process.env.E2E_BASE ?? 'http://127.0.0.1:18743'; // 5f:本地 dist 口可覆写(staging=origin/main 纪律下验未推代码) const SHOTS = '/tmp/e2e-shots'; mkdirSync(SHOTS, { recursive: true });