Files
lvmh/web/vite.config.ts
T

18 lines
353 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const DEV_PROXY_TARGET: string = "http://localhost:8686";
export default defineConfig({
plugins: [react()],
build: {
outDir: "dist",
},
server: {
proxy: {
"/api": DEV_PROXY_TARGET,
"/ws": { target: DEV_PROXY_TARGET, ws: true },
},
},
});