rustpad/vite.config.ts

27 lines
504 B
TypeScript

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({
base: "",
build: {
chunkSizeWarningLimit: 1000,
},
plugins: [
wasm(),
topLevelAwait(),
react()
],
server: {
proxy: {
"/api": {
target: "http://127.0.0.1:3030",
changeOrigin: true,
secure: false,
ws: true,
},
},
},
});