Skip to content

Commit

Permalink
fix(examples/with-playwritght): use PORT env variable and fall back t…
Browse files Browse the repository at this point in the history
…o 3000

closes 37952
  • Loading branch information
Marcos Bérgamo authored and Marcos Bérgamo committed Jun 28, 2022
1 parent 42e214e commit aebd161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-playwright/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config: PlaywrightTestConfig = {
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
webServer: {
command: 'npm run dev',
port: 3000,
port: process.env.PORT || 3000,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit aebd161

Please sign in to comment.