@shopify/shopify-app-remix
Version:
Shopify Remix - to simplify the building of Shopify Apps with Remix
14 lines (9 loc) • 297 B
text/typescript
import {setAbstractFetchFunc} from '@shopify/shopify-api/runtime';
import {installGlobals} from '@remix-run/node';
import '../node';
installGlobals();
const fetchFunc = fetch;
setAbstractFetchFunc(async (...args) => {
const response = await fetchFunc(...args);
return response as any;
});