darkwatch/client/vite.config.ts

17 lines
342 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
allowedHosts: true,
proxy: {
"/api": "http://localhost:3000",
"/socket.io": {
target: "http://localhost:3000",
ws: true,
},
},
},
});