Environment and API client
The Academia UI is a frontend that depends on a deployed API. Configuration is environment-driven.
NEXT_PUBLIC_API_BASE_URL
Set in .env.local (see Local development). The Axios instance uses this value as the base URL for API requests.
Example:
NEXT_PUBLIC_API_BASE_URL="https://api.academia.et/api/v1"
Request headers (conceptual)
The client is designed to send context the API expects, including:
Authorization: Bearer <token>when the user is signed in- Tenant domain (from the auth store) as needed for upstream routing
Inspect src/lib/api/client.ts in the Academia repo for the exact header names and interceptor logic.
:::note Security
Never commit real tokens or production secrets. Document variable names and purpose for contributors; keep values in local env or your deployment platform.
:::