import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ root: "client", plugins: [react()], resolve: { alias: { "@shared": new URL("./shared", import.meta.url).pathname } }, server: { proxy: { "/api": { target: "http://localhost:8787", ws: true } } }, build: { outDir: "../dist/client", emptyOutDir: true }, });