feat(proj): init

This commit is contained in:
vl.arkhangelskii
2026-09-21 04:06:43 +03:00
commit c956b94983
1076 changed files with 50876 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
// Dev: /api → localhost:51291 (как nginx в Docker)
const apiProxyTarget = env.VITE_API_PROXY_TARGET || "http://localhost:51291";
return {
plugins: [react()],
server: {
port: 51290,
proxy: {
"/api": {
target: apiProxyTarget,
changeOrigin: true,
},
},
},
};
});