lynxkite / web /vite.config.ts
darabos's picture
Remove Next.js.
4d9392e
raw
history blame
445 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({
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,
},
},
},
})