import { defineConfig } from '@playwright/test'; export default defineConfig({ testDir: 'e2e', timeout: 30_000, use: { baseURL: process.env.E2E_BASE_URL ?? 'http://localhost:5173', trace: 'retain-on-failure' }, webServer: process.env.E2E_BASE_URL ? undefined : { command: 'npm run dev', port: 5173, reuseExistingServer: !process.env.CI, timeout: 120_000 } });