docs: add troubleshooting note for NEXT_PUBLIC_API_URL

This commit is contained in:
Sana (OpenClaw)
2026-02-08 15:41:28 +00:00
parent 2322e198bf
commit bbbba764e1
2 changed files with 19 additions and 0 deletions

View File

@@ -160,6 +160,8 @@ make check
## Troubleshooting
More: [`docs/troubleshooting/README.md`](./docs/troubleshooting/README.md)
### Frontend keeps redirecting / Clerk errors
You likely have `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` set (even to a placeholder). To run without Clerk:

View File

@@ -0,0 +1,17 @@
# 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_URL` is missing/blank/incorrect. The frontend uses this variable to build API URLs.
**Fix**
- Local dev: set `NEXT_PUBLIC_API_URL=http://localhost:8000` in `frontend/.env.local`.
- Docker Compose (self-host): set `NEXT_PUBLIC_API_URL=http://localhost:8000` in the root `.env` used by compose (or update it to match your actual backend host/port).
Notes:
- `NEXT_PUBLIC_API_URL` must be reachable from the browser (not just from within containers).