diff options
Diffstat (limited to 'src/services/graphql/client.ts')
| -rw-r--r-- | src/services/graphql/client.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/services/graphql/client.ts b/src/services/graphql/client.ts deleted file mode 100644 index a58441f..0000000 --- a/src/services/graphql/client.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { GraphQLClient } from 'graphql-request'; - -export const getGraphQLClient = () => { - const apiUrl: string = process.env.NEXT_PUBLIC_GRAPHQL_API || ''; - - if (!apiUrl) throw new Error('API URL not defined.'); - - const graphQLClient = new GraphQLClient(apiUrl); - - return graphQLClient; -}; |
