Загрузить файлы в «/»

This commit is contained in:
2026-07-18 15:05:21 +03:00
parent 0907234f4a
commit 0372e2c5f1
9 changed files with 284 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 5173,
proxy: {
"/api": {
target: "http://backend:8000",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
ws: true,
},
},
},
});