Files
storkit/frontend/vite.config.ts

21 lines
358 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// https://vite.dev/config/
export default defineConfig(() => ({
plugins: [react()],
server: {
proxy: {
"/api": "http://localhost:3001",
"/ws": {
target: "ws://localhost:3001",
ws: true,
},
},
},
build: {
outDir: "dist",
emptyOutDir: true,
},
}));