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