Skip to content

Commit

Permalink
Replace localhost with loopback IP
Browse files Browse the repository at this point in the history
Use --host
  • Loading branch information
tyom committed Jan 5, 2024
1 parent e36f010 commit d84f962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig } from '@playwright/test';

const PORT = process.env.PORT || 5173;
const serverUrl = `http://localhost:${PORT}`;
const serverUrl = `http://127.0.0.1:${PORT}`;

export default defineConfig({
webServer: {
command: 'pnpm run dev',
command: 'pnpm run dev --host',
url: serverUrl,
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit d84f962

Please sign in to comment.