# Desktop (Tauri) build — the @parking/web SPA needs to know where Fastify is. # # In a BROWSER (dev via the Vite proxy, or prod where Fastify serves the SPA), # leave VITE_API_BASE UNSET — requests stay relative/same-origin. # # For the DESKTOP build, the bundled SPA loads from tauri://localhost and has no # proxy, so point it at the appliance's Fastify origin. This is read at WEB build # time, so export it before `pnpm --filter @parking/desktop build` (or put it in # apps/web/.env.production). VITE_API_BASE=http://127.0.0.1:3000