Complete DDS training workflow and delivery package

This commit is contained in:
andreysk0304 2026-09-24 01:10:49 +03:00
commit 4c4b91064f
229 changed files with 11969 additions and 1024 deletions

View file

@ -1,15 +1,18 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const proxy = {
"/api": { target: process.env.VITE_BACKEND_URL || "http://localhost:8000", changeOrigin: true },
"/ws": { target: process.env.VITE_WS_BACKEND_URL || "ws://localhost:8000", ws: true },
};
// Бэкенд один, порт один: фронт ходит на /api и /ws через прокси,
// чтобы в классе не было разъезда адресов между машинами.
export default defineConfig({
server: {
port: 5173,
proxy: {
"/api": { target: process.env.VITE_BACKEND_URL || "http://localhost:8000", changeOrigin: true },
"/ws": { target: process.env.VITE_WS_BACKEND_URL || "ws://localhost:8000", ws: true },
},
proxy,
},
preview: { port: 5173, host: "0.0.0.0", proxy },
resolve: { alias: { "@": "/src" } },
});