import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], // Production one-VM path deploy: VITE_BASE=/admin/ // Subdomain deploy can omit this (defaults to /). base: process.env.VITE_BASE ?? "/", server: { host: "127.0.0.1", port: 5173, strictPort: true, allowedHosts: ["novintrades.local", "novintrades.test"], proxy: { "/api": { target: "http://127.0.0.1:3000", changeOrigin: true, }, "/health": { target: "http://127.0.0.1:3000", changeOrigin: true, }, }, }, });