import { defineConfig } from '@playwright/test' const isCI = !!process.env.PLAYWRIGHT_BASE_URL export default defineConfig({ testDir: './e2e', timeout: 30_000, retries: 0, use: { baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000', headless: true, }, ...(isCI ? {} : { webServer: { command: 'npm run dev', port: 3000, reuseExistingServer: true, timeout: 30_000, }, }), projects: [ { name: 'chromium', use: { browserName: 'chromium' }, }, ], })