第一次上传

This commit is contained in:
xxk
2026-06-11 10:31:24 +08:00
commit cfef094568
1523 changed files with 210650 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import vue from "@vitejs/plugin-vue";
import { defineConfig, loadEnv } from "vite";
import { resolve } from "node:path";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
return {
plugins: [vue()],
resolve: {
alias: {
"@": resolve(__dirname, "src"),
},
},
server: {
port: Number(env.VITE_APP_PORT || 5174),
proxy: {
"/api": {
target: env.VITE_API_TARGET || "http://localhost:8000",
changeOrigin: true,
},
},
},
};
});