From ad9f27b220c8e0a611d3c104ec48c2ef1f950948 Mon Sep 17 00:00:00 2001 From: taroj1205 Date: Fri, 16 May 2025 11:37:40 +1200 Subject: [PATCH] fix(playwright.config): adjust web server command for CI environment --- playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index c0fb088..5d12065 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -65,7 +65,7 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: 'npm run dev', + command: process.env.CI ? 'npm run start' : 'npm run dev', url: 'http://127.0.0.1:3000', reuseExistingServer: !process.env.CI, },