770 B
770 B
Troubleshooting
Activity feed is blank / frontend API calls fail
Symptoms
- Activity feed shows no items.
- The browser console/network tab shows failed requests to
/api/v1/*.
Cause
NEXT_PUBLIC_API_URLis missing/blank/incorrect. The frontend uses this variable to build API URLs.
Fix
- Local dev: set
NEXT_PUBLIC_API_URL=http://localhost:8000infrontend/.env.local. - Docker Compose (self-host): set
NEXT_PUBLIC_API_URL=http://localhost:8000in the root.envused by compose (or update it to match your actual backend host/port).
Notes:
NEXT_PUBLIC_API_URLmust be reachable from the browser. If you're using Docker Compose, don't set it to an internal service name likehttp://backend:8000unless the browser can resolve it.