This commit is contained in:
2026-03-17 18:32:44 +03:00
commit efcd4a8dfd
209 changed files with 33355 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const proxyTarget = env.VITE_API_PROXY_TARGET || "http://127.0.0.1:8000";
return {
server: {
host: "::",
port: 8080,
proxy: {
"/api": {
target: proxyTarget,
changeOrigin: true,
},
},
},
base: "/",
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
};
});