Spaces:
Running
Running
File size: 597 Bytes
1a56106 4d9392e da515b9 1a56106 4d9392e 1a56106 d7ccb5f da515b9 4d9392e da515b9 af53b62 a180fd2 af53b62 1a56106 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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,
},
},
},
})
|