docs: add troubleshooting note for NEXT_PUBLIC_API_URL
This commit is contained in:
@@ -160,6 +160,8 @@ make check
|
|||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
|
More: [`docs/troubleshooting/README.md`](./docs/troubleshooting/README.md)
|
||||||
|
|
||||||
### Frontend keeps redirecting / Clerk errors
|
### Frontend keeps redirecting / Clerk errors
|
||||||
|
|
||||||
You likely have `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` set (even to a placeholder). To run without Clerk:
|
You likely have `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` set (even to a placeholder). To run without Clerk:
|
||||||
|
|||||||
17
docs/troubleshooting/README.md
Normal file
17
docs/troubleshooting/README.md
Normal 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).
|
||||||
Reference in New Issue
Block a user