Publish Docker image / build-and-push (push) Successful in 2m12s
Move Domains, IP ranges, ASNs and Communities managers from legacy /api endpoints to direct EvoBGP /v1 modules/communities endpoints with a dedicated adapter layer. Made-with: Cursor
29 lines
606 B
JavaScript
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',
|
|
},
|
|
},
|
|
})
|