add front spa-app

This commit is contained in:
2025-11-30 06:31:23 +03:00
parent 714844058f
commit 8aced994de
20 changed files with 3358 additions and 1 deletions

17
rmser-app/vite.config.ts Normal file
View File

@@ -0,0 +1,17 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://host.docker.internal:8080',
changeOrigin: true,
// Если бэкенд ожидает /api, rewrite не нужен.
// Если бэкенд на корне (localhost:8080/recommendations), то раскомментируй:
// rewrite: (path) => path.replace(/^\/api/, ''),
}
}
}
})