X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/c1bc5993a694f6fd047a3881351827058042483b..e7f6de3d196ec1bf392056c504c2bc7b86e40ca0:/src/config/apollo.js 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 });