Skip to content

Commit d0f4f05

Browse files
committed
In CI Docker containers, Vite binds only to localhost (often IPv6 ::1), while wait-on polls IPv4 127.0.0.1
The fix is to add --host to the serve command so Vite listens on all interfaces.
1 parent 15a5703 commit d0f4f05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/model_catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dev": "vite",
3535
"build": "vite build",
3636
"preview": "vite preview",
37-
"serve:e2e": "vite --port 5173",
37+
"serve:e2e": "vite --host --port 5173",
3838
"e2e": "npx cypress run --browser chrome",
3939
"e2e:ci": "npx start-server-and-test serve:e2e http://localhost:5173 e2e",
4040
"test": "vitest run",

0 commit comments

Comments
 (0)