// Copyright (c) 2026 Ivan Vasilev // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ // Ресурсы — от адреса страницы, а не от корня домена: собранная панель работает и в корне, и в // подпапке за reverse-proxy (example.com/forgetting/) без пересборки. Запросы к API — так же // (main.tsx). base: './', plugins: [react()], server: { proxy: { '/api': 'http://localhost:8080', '/ui': 'http://localhost:8080', '/health': 'http://localhost:8080', '/login': 'http://localhost:8080', '/logout': 'http://localhost:8080', }, }, });