Skip to content

Commit b44b4e5

Browse files
Document baseURL normalization semantics for transport endpoints
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent e2438ab commit b44b4e5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

docs/tasks/streams.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,9 @@ 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
657+
are normalized consistently.
658+
656659
For richer TypeScript ergonomics in app code, `@trigger.dev/ai` also exports:
657660

658661
- `TriggerChatHeadersInput`

packages/ai/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
- Improved best-effort run-store cleanup to attempt both inactive-state writes and deletes even if one step fails.
2020
- Added reconnect cleanup error reporting for stale inactive state while still returning `null`.
2121
- Added retry semantics for stale inactive reconnect cleanup on subsequent reconnect attempts.
22+
- Added consistent baseURL normalization for trigger and stream endpoints (including path prefixes and trailing slashes).

packages/ai/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ both cleanup steps (`set` inactive state and `delete`) even if one of them fails
155155
without surfacing callback events.
156156
- Provide a custom `runStore` if you need state shared across processes/instances.
157157

158+
## Base URL behavior
159+
160+
- `baseURL` supports optional path prefixes (for example reverse-proxy mounts).
161+
- Trailing slashes are normalized automatically before trigger/stream requests.
162+
158163
## `ai.tool(...)` example
159164

160165
```ts

0 commit comments

Comments
 (0)