mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
fix(playwright.config): update web server command and URL for local development
- Modified the web server command to use 'npm run start' in CI environments and 'npm run dev' locally. - Changed the URL from 'http://127.0.0.1:3000' to 'http://localhost:3000' for consistency. - Added a port specification for clarity.
This commit is contained in:
parent
980883b5b1
commit
9c9883b660
1 changed files with 3 additions and 2 deletions
|
@ -65,8 +65,9 @@ export default defineConfig({
|
|||
|
||||
/* Run your local dev server before starting the tests */
|
||||
webServer: {
|
||||
command: 'npm run dev',
|
||||
url: 'http://127.0.0.1:3000',
|
||||
command: process.env.CI ? 'npm run start' : 'npm run dev',
|
||||
url: 'http://localhost:3000',
|
||||
port: 3000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue