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 3db5041c58
commit 1f1df8e273
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 webServer: process.env.E2E_SKIP_WEBSERVER
? undefined ? undefined
: { : {
command: "npm run dev", command: "npm run dev -- --host 127.0.0.1",
url: baseURL + "/dashboard/login", url: baseURL + "/dashboard/login",
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
timeout: 120_000, timeout: 120_000,
+2 -2
View File
@@ -8,12 +8,12 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
"^/api/v1/ws/.*": { "^/api/v1/ws/.*": {
target: "ws://localhost:8008", target: "ws://127.0.0.1:8008",
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
}, },
"/api": { "/api": {
target: "http://localhost:8008", target: "http://127.0.0.1:8008",
changeOrigin: true, changeOrigin: true,
}, },
}, },