Skip to content

Commit

Permalink
test: set base url based on node env
Browse files Browse the repository at this point in the history
  • Loading branch information
m4xshen committed Apr 1, 2024
1 parent a6efa63 commit 10fa2a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ 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: 'http://127.0.0.1:3000',
baseURL:
process.env.NODE_ENV === 'development'
? 'http://127.0.0.1:3000'
: 'https://github-issue-blog.vercel.app/',

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

0 comments on commit 10fa2a4

Please sign in to comment.