Skip to content

Commit bf05b94

Browse files
Document default baseURL behavior when omitted
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 3aa5ad1 commit bf05b94

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

docs/tasks/streams.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ the failure is surfaced through `onError` with phase `reconnect`.
653653
Subsequent reconnect calls will retry stale inactive-state cleanup until it succeeds.
654654
If `onError` is omitted, reconnect still returns `null` and continues without callback reporting.
655655

656-
`baseURL` supports optional path prefixes and trailing slashes; both trigger and stream URLs
656+
`baseURL` defaults to `https://api.trigger.dev` when omitted.
657+
It supports optional path prefixes and trailing slashes; both trigger and stream URLs
657658
are normalized consistently, surrounding whitespace is trimmed before normalization, and
658659
the resulting value must not be empty. The value must also be a valid absolute URL using
659660
the `http` or `https` protocol, without query parameters, hash fragments, or embedded

packages/ai/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@
2929
- Documented that `HTTP://` and `HTTPS://` are accepted (case-insensitive protocol matching).
3030
- Added deterministic validation ordering for multi-issue baseURL values
3131
(protocol → query/hash → credentials).
32+
- Documented explicit default `baseURL` value (`https://api.trigger.dev`) when omitted.

packages/ai/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ both cleanup steps (`set` inactive state and `delete`) even if one of them fails
157157

158158
## Base URL behavior
159159

160+
- `baseURL` defaults to `https://api.trigger.dev` when omitted.
160161
- `baseURL` supports optional path prefixes (for example reverse-proxy mounts).
161162
- Trailing slashes are normalized automatically before trigger/stream requests.
162163
- Surrounding whitespace is trimmed before normalization.

0 commit comments

Comments
 (0)