Skip to content

Commit 02807e7

Browse files
committed
chore(config): update Playwright config to use explicit IP for baseURL and webServer URL
1 parent 0f3ebca commit 02807e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ export default defineConfig({
88
workers: process.env.CI ? 1 : undefined, // Limit workers in CI
99
reporter: "html", // Reporter to use
1010
use: {
11-
baseURL: "http://localhost:3000", // Base URL for actions like page.goto()
11+
baseURL: "http://127.0.0.1:3000", // Use explicit IP for baseURL
1212
trace: "retain-on-failure", // Record trace if test fails
1313
},
1414
webServer: {
1515
command: "DEBUG=next:start pnpm start",
16-
url: "http://localhost:3000", // URL to wait for
16+
url: "http://127.0.0.1:3000", // Use explicit IP for webServer check
1717
reuseExistingServer: !process.env.CI, // Reuse server locally, start fresh in CI
1818
timeout: 240 * 1000, // Increase timeout for server start (4 minutes)
1919
stderr: 'pipe', // Pipe server errors to Playwright process

0 commit comments

Comments
 (0)