new web ract

This commit is contained in:
jze9
2026-05-15 03:31:28 +05:00
parent de78624495
commit 2335497226
58 changed files with 7397 additions and 406 deletions

15
web-react/vite.config.js Normal file
View File

@@ -0,0 +1,15 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
// В dev-режиме проксируем API запросы на FastAPI
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
rewrite: path => path.replace(/^\/api/, ''),
},
},
},
})