Files
router-lists-ui/frontend/vite.config.js
T
denozord fe7acd655e
Publish Docker image / build-and-push (push) Successful in 2m12s
Rollback frontend and config changes to commit a9a7e98 state.
Restore project files to match the requested baseline before subsequent updates.

Made-with: Cursor
2026-04-26 14:05:50 +07:00

29 lines
606 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
build: {
chunkSizeWarningLimit: 2000,
},
server: {
proxy: {
'/v1': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: false,
},
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
secure: false,
},
},
// Отключаем кеширование в dev режиме
headers: {
'Cache-Control': 'no-store',
},
},
})