22 lines
350 B
TypeScript
22 lines
350 B
TypeScript
import { defineConfig } from "vite";
|
|||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
root: "web",
|
||
|
|
plugins: [react()],
|
||
|
|
build: {
|
||
|
|
outDir: "dist",
|
||
|
|
emptyOutDir: true,
|
||
|
|
},
|
||
|
|
server: {
|
||
|
|
port: 5173,
|
||
|
|
proxy: {
|
||
|
|
"/api": "http://127.0.0.1:8787",
|
||
|
|
"/ws": {
|
||
|
|
target: "ws://127.0.0.1:8787",
|
||
|
|
ws: true,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|