world-simulator / vite.config.ts
DeltaZN
fix(hf): serve lobby at root, ship built frontend, honor proxy headers
6c64b04
Raw
History Blame Contribute Delete
550 Bytes
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
root: "frontend",
// The SPA is served under /world (the lobby owns the root path), so assets
// must be referenced as /world/assets/... rather than /assets/...
base: "/world/",
server: {
host: "127.0.0.1",
port: 5173,
strictPort: true,
},
preview: {
host: "127.0.0.1",
port: 4173,
strictPort: true,
},
build: {
outDir: "../dist/frontend",
emptyOutDir: true,
},
});