Skip to content

Commit 05d81f5

Browse files
committed
fix: bind Vite dev server to 127.0.0.1 for CI compatibility
The dev server was binding to 'localhost' by default, but Playwright was trying to connect to '127.0.0.1'. In CI environments, these may not resolve to the same address, causing connection timeouts. This fix explicitly sets host: '127.0.0.1' in the Vite server config to match the Playwright webServer.url configuration. Fixes: E2E test timeout errors in GitHub Actions
1 parent cc00549 commit 05d81f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default defineConfig({
2525
// Use public as the root for dev server (for E2E tests)
2626
root: 'public',
2727
server: {
28+
host: '127.0.0.1',
2829
port: 8080,
2930
strictPort: true,
3031
fs: {

0 commit comments

Comments
 (0)