Ruhi_hosting / frontend /vite.config.js
Ruhivig65's picture
Upload 3 files
3e5d3a9 verified
raw
history blame contribute delete
370 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
build: {
outDir: 'dist',
assetsDir: 'assets',
sourcemap: false,
minify: 'terser',
},
server: {
proxy: {
'/api': 'http://localhost:7860',
'/ws': { target: 'ws://localhost:7860', ws: true },
}
}
})