Frontend
Set these in frontend/.env.local. Vite reads them at build time.
| Variable | Required | Description |
|---|---|---|
VITE_API_URL | No | URL of the self-hosted backend, for example http://localhost:4000 |
VITE_SUPABASE_URL | No | Supabase project URL, when using Supabase instead |
VITE_SUPABASE_ANON_KEY | No | Supabase anonymous key |
VITE_SIP_URI | No | SIP registration URI |
VITE_SIP_PASSWORD | No | SIP password |
VITE_SIP_WS_URL | No | WebSocket (WSS) URL of the SIP server |
VITE_SIP_CALLER_ID | No | Outbound caller ID in E.164 format |
Without the SIP variables, calls are simulated.
Backend
| Variable | Required | Description |
|---|---|---|
JWT_SECRET | Yes | Secret used to sign login tokens |
PORT | No | Server port, default 4000 |
DATABASE_URL | No | Path to the SQLite database file |
Never commit .env.local. Keep it out of Git with .gitignore.