-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
});