diff --git a/playwright.config.ts b/playwright.config.ts index 0da4e6c9..50e2c9c4 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -3,14 +3,11 @@ import type { PlaywrightTestConfig } from '@playwright/test' const config: PlaywrightTestConfig = { reporter: [['json', { outputFile: 'e2eresults.json' }]], webServer: { - command: 'npm run dev', - url: 'http://localhost:5173/', + command: 'npm run build && npm run preview', + port: 5173, timeout: 240000, reuseExistingServer: !process.env.CI, }, - use: { - baseURL: 'http://localhost:5173/', - }, workers: process.env.CI ? 4 : undefined }