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 753125a commit c217012Copy full SHA for c217012
sdk/src/polyfill/fetch.ts
@@ -5,7 +5,7 @@ import $mime from "mime/lite.js";
5
const oldFetch = globalThis.fetch;
6
7
// We always polyfill fetch because Node's fetch doesn't support file URLs.
8
-globalThis.fetch = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise<Response> {
+(globalThis.fetch as any) = async function (resource: URL | RequestInfo, options: RequestInit | undefined): Promise<Response> {
9
const request = new Request(resource, options);
10
11
const url = new URL(request.url);
0 commit comments