X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/c1bc5993a694f6fd047a3881351827058042483b..73973edab9aaa81312ba80a68bfe34bf5abcecd9:/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 });