初始化

This commit is contained in:
yml
2026-06-02 15:31:09 +08:00
commit 3ea0c3db7d
16 changed files with 2832 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { defineConfig, loadEnv } from "vite";
import vue from "@vitejs/plugin-vue";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const proxyTarget = env.VITE_API_PROXY_TARGET || "http://127.0.0.1:8080";
return {
plugins: [vue()],
server: {
port: 5174,
proxy: {
"/api": {
target: proxyTarget,
changeOrigin: true,
},
},
},
};
});