Join the discussion on Telegram
Why this matters
frontend/src/lib/dashboard.ts line 46:
const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || \"http://localhost:3001/v1\";
This module-level constant is never referenced anywhere in the file — fetchStreams calls getStreamsEndpointCandidates() (from lib/api/_shared.ts) instead. The dead constant is misleading because each API_BASE_URL in this codebase has a slightly different fallback URL (http://localhost:3001, http://localhost:3001/v1) and it's not obvious which is real.
Acceptance criteria
Files to touch
frontend/src/lib/dashboard.ts (line 46)
Out of scope
- Consolidating the four different
API_BASE_URL fallbacks across the codebase (separate cleanup)
Join the discussion on Telegram
Why this matters
frontend/src/lib/dashboard.tsline 46:This module-level constant is never referenced anywhere in the file —
fetchStreamscallsgetStreamsEndpointCandidates()(fromlib/api/_shared.ts) instead. The dead constant is misleading because eachAPI_BASE_URLin this codebase has a slightly different fallback URL (http://localhost:3001,http://localhost:3001/v1) and it's not obvious which is real.Acceptance criteria
API_BASE_URLdeclaration at line 46Files to touch
frontend/src/lib/dashboard.ts(line 46)Out of scope
API_BASE_URLfallbacks across the codebase (separate cleanup)