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, }, });