feat: 管理后台接真实接口并加 Playwright e2e
This commit is contained in:
+3
-2
@@ -4,6 +4,7 @@ import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
||||
const proxyTarget = process.env.NIXMSG_PROXY_TARGET || "http://127.0.0.1:7443";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
@@ -14,8 +15,8 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
"/api": "http://127.0.0.1:7443",
|
||||
"/healthz": "http://127.0.0.1:7443",
|
||||
"/api": proxyTarget,
|
||||
"/healthz": proxyTarget,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user