Skip to content

Commit fb40e56

Browse files
Document base_url /api prefix deduplication behavior
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent b397d12 commit fb40e56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export HYPERBROWSER_HEADERS='{"X-Correlation-Id":"req-123"}' # optional JSON obj
2828
`base_url` must start with `https://` (or `http://` for local testing), include a host,
2929
and not contain query parameters or URL fragments.
3030
The SDK normalizes trailing slashes automatically.
31+
If `base_url` already ends with `/api`, the SDK avoids adding a duplicate `/api` prefix.
3132
If `HYPERBROWSER_BASE_URL` is set, it must be non-empty.
3233
When `config` is not provided, client constructors also read `HYPERBROWSER_HEADERS`
3334
automatically (same as API key and base URL).

0 commit comments

Comments
 (0)