File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/core/src/v3/apiClient Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ import {
8787} from "./types.js" ;
8888import { API_VERSION , API_VERSION_HEADER_NAME } from "./version.js" ;
8989import { ApiClientConfiguration } from "../apiClientManager-api.js" ;
90+ import { getEnvVar } from "../utils/getEnv.js" ;
9091
9192export type CreateWaitpointTokenResponse = Prettify <
9293 CreateWaitpointTokenResponseBody & {
@@ -1192,7 +1193,13 @@ export class ApiClient {
11921193
11931194 headers [ API_VERSION_HEADER_NAME ] = API_VERSION ;
11941195
1195- if ( this . futureFlags . unstable_v2RealtimeStreams ) {
1196+ if (
1197+ this . futureFlags . unstable_v2RealtimeStreams ||
1198+ getEnvVar ( "TRIGGER_V2_REALTIME_STREAMS" ) === "1" ||
1199+ getEnvVar ( "TRIGGER_V2_REALTIME_STREAMS" ) === "true" ||
1200+ getEnvVar ( "TRIGGER_REALTIME_STREAMS_V2" ) === "1" ||
1201+ getEnvVar ( "TRIGGER_REALTIME_STREAMS_V2" ) === "true"
1202+ ) {
11961203 headers [ "x-trigger-realtime-streams-version" ] = "v2" ;
11971204 }
11981205
You can’t perform that action at this time.
0 commit comments