2023-08-10 21:10:48 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import wasm from "vite-plugin-wasm";
|
|
|
|
import topLevelAwait from "vite-plugin-top-level-await";
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [react(), wasm(), topLevelAwait()],
|
2023-08-10 23:37:53 +00:00
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
"/ws": {
|
|
|
|
target: "ws://localhost:3000/ws",
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (path) => path.replace(/^\/ws/, ""),
|
|
|
|
ws: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-08-10 21:10:48 +00:00
|
|
|
});
|