feat: 初始化 Vue 前端工程与 embed 占位

This commit is contained in:
Nixevol
2026-09-30 05:50:37 +08:00
parent 5041a5bdd3
commit 857ba893fd
18 changed files with 1429 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "node:path";
import { fileURLToPath } from "node:url";
const rootDir = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
"@": path.resolve(rootDir, "src"),
},
},
server: {
proxy: {
"/api": "http://127.0.0.1:7443",
"/healthz": "http://127.0.0.1:7443",
},
},
});