diff --git a/packages/node/src/lib/abort.ts b/packages/node/src/lib/abort.ts index 298e06ce8..3963d2a33 100644 --- a/packages/node/src/lib/abort.ts +++ b/packages/node/src/lib/abort.ts @@ -61,7 +61,7 @@ class AbortController { * @param timeoutMs - Set a request timeout, after which the request is cancelled. */ export const abortSignalAfterTimeout = (timeoutMs: number) => { - if (detectRuntime() === 'web-worker') { + if (detectRuntime() === 'cloudflare-worker') { return [] // TODO: this is broken in cloudflare workers, otherwise results in "A hanging Promise was canceled..." error. } const ac = new (global.AbortController || AbortController)()