gomuks/web/vite.config.ts
2024-10-12 00:31:01 +03:00

27 lines
458 B
TypeScript

import react from "@vitejs/plugin-react-swc"
import { defineConfig } from "vite"
import svgr from "vite-plugin-svgr"
export default defineConfig({
plugins: [
react(),
svgr({
svgrOptions: {
replaceAttrValues: {
"#5f6368": "currentColor",
},
},
}),
],
server: {
proxy: {
"/_gomuks/websocket": {
target: "http://localhost:29325",
ws: true,
},
"/_gomuks": {
target: "http://localhost:29325",
},
},
},
})