import path from "node:path"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig(({ command }) => { if (command !== "serve") throw new Error("Review prototype is development-only."); return { root: path.resolve(__dirname, "prototypes/administration-review"), plugins: [react()], appType: "spa", server: { host: "127.0.0.1", port: 5175, strictPort: true }, }; });