Skip to content

Commit 508cce8

Browse files
Require PLAYWRIGHT_REUSE_SERVER=true to reuse an existing Playwright server
1 parent 789b95f commit 508cce8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎playwright.config.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export default defineConfig({
3333
command: 'bun run build && python3 scripts/serve-out.py',
3434
port: 8003,
3535
timeout: 300 * 1000,
36-
// Locally (bun run build + serve-out.py already running) reuse the
37-
// existing server; CI always gets a fresh build.
38-
reuseExistingServer: !process.env.CI,
36+
// Reuse a locally started server only when explicitly requested.
37+
reuseExistingServer: process.env.PLAYWRIGHT_REUSE_SERVER === 'true',
3938
},
40-
});
39+
});

0 commit comments

Comments
 (0)