Skip to content

Commit 032d6a8

Browse files
committed
add changeset
1 parent d82bda4 commit 032d6a8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.changeset/heavy-taxis-suffer.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@segment/analytics-next': minor
3+
---
4+
Add new `additionalHeaders` setting, along with `fetchPriority`.
5+
6+
```ts
7+
analytics.load("<YOUR_WRITE_KEY>",
8+
{
9+
integrations: {
10+
'Segment.io': {
11+
deliveryStrategy: {
12+
strategy: "standard" // also works for 'batching'
13+
config: {
14+
additionalHeaders: { 'x-api-key': 'foo' } or () => {...}
15+
fetchPriority: 'low' | 'high', // new setting
16+
},
17+
},
18+
},
19+
},
20+
}
21+
)
22+
23+
```

0 commit comments

Comments
 (0)