23 lines
431 B
JavaScript
23 lines
431 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
root: "./web",
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
"/socket.io": {
|
|
target: "http://localhost:3001",
|
|
ws: true
|
|
},
|
|
"/health": "http://localhost:3001",
|
|
"/api": "http://localhost:3001"
|
|
}
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true
|
|
}
|
|
});
|