This commit is contained in:
a.ilin
2026-10-01 22:52:19 +03:00
commit 7448081275
47 changed files with 6192 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { fileURLToPath, URL } from 'node:url'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
// Бэкенд не настраивает CORS, поэтому в dev все запросы /api идут через прокси.
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
})