Skip to content

Commit

Permalink
update graph ql uri for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed May 16, 2024
1 parent 59ab9ea commit d030449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ yarn-error.log*
.env.development.local
.env.test.local
.env.production.local
.env.production

# typescript
*.tsbuildinfo
4 changes: 2 additions & 2 deletions packages/nextjs/components/ScaffoldEthAppWithProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export const ScaffoldEthAppWithProviders = ({ children }: { children: React.Reac
setMounted(true);
}, []);

const subgraphUri = "http://localhost:42069";
const graphQLUri = process.env.NEXT_PUBLIC_GRAPHQL_URI;
const apolloClient = new ApolloClient({
uri: subgraphUri,
uri: graphQLUri,
cache: new InMemoryCache(),
});

Expand Down

0 comments on commit d030449

Please sign in to comment.