Skip to content

Commit 96eb49c

Browse files
committed
fix(chat): bind fetch in HttpMCPTransport to fix illegal invocation on Cloudflare Workers
1 parent f917758 commit 96eb49c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/site/src/pages/api/chat.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export const POST: APIRoute = async ({ request }) => {
114114
headers: {
115115
Authorization: `Bearer ${sanityToken}`,
116116
},
117+
fetch: (input, init) => globalThis.fetch(input, init),
117118
},
118119
});
119120

0 commit comments

Comments
 (0)