ci(e2e): bind Vite dev server to loopback

Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
This commit is contained in:
naiba
2026-05-26 05:56:12 +00:00
co-authored by naiba/CloudCode cloudcode
parent f380a8c4ac
commit f47d4a8772
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export default defineConfig({
webServer: process.env.E2E_SKIP_WEBSERVER
? undefined
: {
command: "npm run dev",
command: "npm run dev -- --host 127.0.0.1",
url: baseURL + "/dashboard/login",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
+2 -2
View File
@@ -8,12 +8,12 @@ export default defineConfig({
server: {
proxy: {
"^/api/v1/ws/.*": {
target: "ws://localhost:8008",
target: "ws://127.0.0.1:8008",
changeOrigin: true,
ws: true,
},
"/api": {
target: "http://localhost:8008",
target: "http://127.0.0.1:8008",
changeOrigin: true,
},
},