X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/d2cd7f1b4c318ac8587ab3dc1dec4a44b6d592fe..852ee620f0a2f6a83cf83eba860ca951b66bb7e2:/src/lib/config/apollo.ts?ds=sidebyside diff --git a/src/lib/config/apollo.ts b/src/lib/config/apollo.ts deleted file mode 100644 index a8b27ef..0000000 --- a/src/lib/config/apollo.ts +++ /dev/null @@ -1,17 +0,0 @@ -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, - headers: { - apiKey: apolloConfig.key - }, - fetch - }), - ...apolloConfig -});