Skip to content

Commit 081ba3e

Browse files
committed
fix: use conditional baseURL
1 parent 8e0fc8f commit 081ba3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/config/playwright/playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default defineConfig({
3434
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
3535
actionTimeout: 0,
3636
/* Base URL to use in actions like `await page.goto('/')`. */
37-
baseURL: 'http://localhost:5173',
37+
baseURL: process.env.CI ? 'http://localhost:4173' : 'http://localhost:5173',
3838

3939
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
4040
trace: 'on-first-retry',

0 commit comments

Comments
 (0)