We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fdc7e6 commit a027e6aCopy full SHA for a027e6a
packages/core/src/v3/apiClient/index.ts
@@ -1016,11 +1016,15 @@ export class ApiClient {
1016
}
1017
1018
#getRealtimeHeaders() {
1019
- const headers: Record<string, string> = {
+ let headers: Record<string, string> = {
1020
Authorization: `Bearer ${this.accessToken}`,
1021
"trigger-version": VERSION,
1022
};
1023
1024
+ if (this.previewBranch) {
1025
+ headers["x-trigger-branch"] = this.previewBranch;
1026
+ }
1027
+
1028
return headers;
1029
1030
0 commit comments