Skip to content

Commit

Permalink
set up a backup
Browse files Browse the repository at this point in the history
  • Loading branch information
ann-kilzer committed Nov 25, 2023
1 parent 1f8f1b2 commit d05c549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import dotenv from 'dotenv'
dotenv.config()

// todo: remove me later
console.log(process.env.PLAYWRIGHT_BASE_URL)
console.log('base url:', process.env.PLAYWRIGHT_BASE_URL)

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -28,7 +28,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:5173/',
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? process.env.CI ? 'https://annkilzer.com' : 'http://localhost:5173/',

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

0 comments on commit d05c549

Please sign in to comment.