File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default class extends WorkerEntrypoint {
17
17
}
18
18
19
19
if ( this . env . STAGE !== 'preview' ) {
20
+ // https://developers.cloudflare.com/workers/configuration/versions-and-deployments/gradual-deployments/#version-affinity
20
21
reqOrResp . headers . set (
21
22
'Cloudflare-Workers-Version-Overrides' ,
22
23
`gitbook-open-v2-${ this . env . STAGE } ="${ this . env . WORKER_VERSION_ID } "`
Original file line number Diff line number Diff line change @@ -829,8 +829,6 @@ async function* streamAIResponse(
829
829
830
830
/**
831
831
* Create a new API client.
832
- * We don't use the binding because it can cause Error: Response closed due to connection limit
833
- * Connection limit are shared between all the bindings.
834
832
*/
835
833
export function apiClient ( input : DataFetcherInput = { apiToken : null } ) {
836
834
const { apiToken } = input ;
You can’t perform that action at this time.
0 commit comments