mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 17:50:13 +00:00
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:
co-authored by
naiba/CloudCode
cloudcode
parent
3db5041c58
commit
1f1df8e273
@@ -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
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user