diff --git a/playwright.config.ts b/playwright.config.ts index c0fb088..96c0b9d 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -65,8 +65,9 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: 'npm run dev', - url: 'http://127.0.0.1:3000', + command: process.env.CI ? 'npm run start' : 'npm run dev', + url: 'http://localhost:3000', + port: 3000, reuseExistingServer: !process.env.CI, }, });