lynxkite / lynxkite-app /web /vite.config.ts
darabos's picture
Split LynxKite into several Python packages.
d7ccb5f
raw
history blame
597 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import Icons from 'unplugin-icons/vite'
// https://vite.dev/config/
export default defineConfig({
build: {
chunkSizeWarningLimit: 2048,
},
esbuild: {
supported: {
// For dynamic imports.
'top-level-await': true,
},
},
plugins: [
react(),
Icons({ compiler: 'jsx', jsx: 'react' }),
],
server: {
proxy: {
'/api': 'http://127.0.0.1:8000',
'/ws': {
target: 'ws://127.0.0.1:8000',
ws: true,
changeOrigin: true,
},
},
},
})