Environment variables
The frontend reads the following environment values. Do not put passwords, tokens, or private API keys in VITE_* values because Vite makes them available to the client bundle.
| Variable | Required in source validation | Purpose | Safe example |
|---|---|---|---|
VITE_API_BASE_URL | Yes: validateEnvironment() warns when absent | Base URL for frontend API requests; fallback in config is http://localhost:3000/api | https://api.example.com/api |
VITE_API_TIMEOUT | No; fallback is 10000 | Axios request timeout in milliseconds | 30000 |
MODE | Vite-provided; not listed as required | App environment selection, used by configuration and development logging | development |
The project also has backend environment variables, but they are not frontend variables and should be managed separately on the server. This page intentionally includes no live environment values.
Source: front/src/config/environment.ts, front/src/services/api/api.ts.