Fixed API_URL handling.

This commit is contained in:
Mike Cao
2026-06-02 11:19:33 -07:00
parent f985b4f9a5
commit 9ced9ac85a
3 changed files with 40 additions and 7 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ DATABASE_URL=connection-url
```
Optional: set `API_URL` to change the base URL used by internal UI API calls.
Relative paths are served under `BASE_PATH`; absolute URLs are called directly by the browser.
Relative paths are served under `BASE_PATH`; absolute URLs are proxied through the local `/api` route.
For example, `API_URL=/internal-api` or `API_URL=https://api.example.com/api`.
The connection URL format: