fix(playwright.config): adjust web server command for CI environment

This commit is contained in:
taroj1205 2025-05-16 11:37:40 +12:00
parent 056ef53172
commit ad9f27b220
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7

View file

@ -65,7 +65,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */ /* Run your local dev server before starting the tests */
webServer: { webServer: {
command: 'npm run dev', command: process.env.CI ? 'npm run start' : 'npm run dev',
url: 'http://127.0.0.1:3000', url: 'http://127.0.0.1:3000',
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
}, },