X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/c1bc5993a694f6fd047a3881351827058042483b..77182aa8d0fa96b594d1c2582a168e2ebe15964d:/src/config/apollo.js?ds=sidebyside diff --git a/src/config/apollo.js b/src/config/apollo.js index 4cfca79..a3820ed 100644 --- a/src/config/apollo.js +++ b/src/config/apollo.js @@ -1,9 +1,14 @@ -import { ApolloClient, InMemoryCache } from '@apollo/client/core'; +import fetch from 'cross-fetch'; +import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client/core'; import { apollo as apolloConfig } from './config'; const cache = new InMemoryCache(); export const client = new ApolloClient({ cache, + link: new HttpLink({ + uri: apolloConfig.uri, + fetch + }), ...apolloConfig });