Skip to content

Commit 8e0fc8f

Browse files
committed
fix(playwright): use npm run to start the server on default port
1 parent 2eba83c commit 8e0fc8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/config/playwright/playwright.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export default defineConfig({
103103
* Use the preview server on CI for more realistic testing.
104104
* Playwright will re-use the local server if there is already a dev-server running.
105105
*/
106-
command: process.env.CI ? 'vite preview --port 5173' : 'vite dev',
107-
port: 5173,
106+
command: process.env.CI ? 'npm run preview' : 'npm run dev',
107+
port: process.env.CI ? 4173 : 5173,
108108
reuseExistingServer: !process.env.CI
109109
}
110110
})

0 commit comments

Comments
 (0)