Skip to content

Commit

Permalink
fix: agent apollo client build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiz27 committed Jan 17, 2024
1 parent 2c8125e commit 7738a45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/agent/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Layout from "@/Layout/layout";
import { createApolloClient } from "@sahil/lib/graphql";

const graphqlUri = process.env.NEXT_PUBLIC_HASURA_GRAPHQL_ENDPOINT;
const ws = process.env.NEXT_PUBLIC_HASURA_GRAPHQL_WS;

const httpOptions = {
headers: {
Expand All @@ -17,6 +18,7 @@ const httpOptions = {
const client = createApolloClient({
uri: graphqlUri,
httpOptions,
ws: ws as string,
});

export default function App({
Expand Down

0 comments on commit 7738a45

Please sign in to comment.