chore: add app config with GQL URL and PORT 3001

This commit is contained in:
Ali BARIN
2021-10-04 20:25:18 +02:00
parent 1343352819
commit fc9bcc5c14
3 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
import { ApolloClient, InMemoryCache } from '@apollo/client';
import appConfig from 'config/app';
const cache = new InMemoryCache();
const client = new ApolloClient({ cache: cache });
const client = new ApolloClient({
uri: appConfig.graphqlUrl,
cache
});
export default client;