import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig(({ command }) => ({ // Relative base: frontgen places one artifact at any mount path and injects . base: "./", plugins: [react()], server: { port: 5173, open: true, // TEMP (dev only): lets the browser read /api/apps/531/rv-screens, which // dev-apps.getzino.in blocks from localhost via CORS. Remove once the // asset record view id is found. proxy: { "/zino-apps": { target: "https://dev-apps.getzino.in", changeOrigin: true, rewrite: (path) => path.replace(/^\/zino-apps/, ""), }, }, }, }));