Spaces:
Running
Running
File size: 588 Bytes
8fe4e41 1a56106 4d9392e 1a56106 d7ccb5f 8fe4e41 d7ccb5f 8fe4e41 af53b62 a180fd2 8fe4e41 a180fd2 af53b62 8fe4e41 |
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,
},
},
},
});
|