Vite exposes only variables prefixed with VITE_ to client code via import.meta.env. Configuration lives in nifty_fifty_bank_nifty_ReactJS/.env.

Required variables

Used in:
  • utils/axios.tsVITE_APP_BASEURL
  • utils/socketConnect.tsVITE_APP_SOCKET_URL

Optional / dev convenience

AuthLogin.tsx reads dev credentials:
Never commit production passwords. VITE_* values are embedded in the client bundle and visible to anyone.

Build-time variables

Environment matrix

Backend must listen on the same origin/port as VITE_APP_SOCKET_URL for WebSocket upgrade (see ops/environment/backend).

TypeScript

src/vite-env.d.ts references Vite client types. Add explicit ImportMetaEnv entries if you want IDE autocomplete for custom keys.