feat: 管理后台接真实接口并加 Playwright e2e

This commit is contained in:
Nixevol
2026-09-30 09:20:01 +08:00
parent a22912d95a
commit b75b67928b
24 changed files with 1299 additions and 71 deletions
+3 -2
View File
@@ -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: {