diff --git a/src/context/fetch.ts b/src/context/fetch.ts index 0121fdeb7..6d91a756d 100644 --- a/src/context/fetch.ts +++ b/src/context/fetch.ts @@ -8,7 +8,7 @@ const useFetch: (input: RequestInfo, init?: RequestInit) => Promise = import('node-fetch').then(({ default: nodeFetch }) => (nodeFetch as unknown as typeof window.fetch)(input, init), ) - : window.fetch + : globalThis.fetch export const augmentRequestInit = (requestInit: RequestInit): RequestInit => { const headers = new Headers(requestInit.headers)