Files
pgMultiMasterFrontend/vite.config.ts
T
george a47f8e52cb feat:
--ADDED DEAD LOCK AND DATABASE SIZE UI
2026-09-24 12:45:13 +05:30

20 lines
477 B
TypeScript

import react from '@vitejs/plugin-react'
import { defineConfig, loadEnv } from 'vite'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
return {
plugins: [react()],
server: {
proxy: {
'/database-api': {
target: env.VITE_DATABASE_API_BASE_URL || 'http://127.0.0.1:9000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/database-api/, ''),
},
},
},
}
})