Spaces:
Running
Running
File size: 588 Bytes
7ed5764 1a56106 524e7c0 1a56106 fdfb0b2 7ed5764 fdfb0b2 7ed5764 af53b62 a180fd2 7ed5764 a180fd2 af53b62 7ed5764 |
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 |
import react from "@vitejs/plugin-react-swc";
import Icons from "unplugin-icons/vite";
import { defineConfig } from "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,
},
},
},
});
|