Skip to content

Commit

Permalink
fix(apollo): revert to hardcoded urls
Browse files Browse the repository at this point in the history
  • Loading branch information
rutajdash committed Apr 30, 2022
1 parent 4725242 commit aa8af30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion client/src/config/ApolloClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ const errorLink = onError(({ graphQLErrors, networkError }) => {
const link = from([
errorLink,
new HttpLink({
uri: process.env.NEXT_PUBLIC_SERVER_ADDRESS,
uri:
process.env.NODE_ENV === 'production'
? 'https://mondaymorning.nitrkl.ac.in/api/v1/graph'
: 'https://project-reclamation-staging.herokuapp.com/v1/graph',
}),
]);

Expand Down
6 changes: 3 additions & 3 deletions client/src/utils/getStores.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default Object.freeze({
ADAMANTIUM_ARCHIVE_A: process.env.NEXT_PUBLIC_ADAMANTIUM_ARCHIVE_A,
ADAMANTIUM_ARCHIVE_B: process.env.NEXT_PUBLIC_ADAMANTIUM_ARCHIVE_b,
ACTIVE: process.env.NEXT_PUBLIC_INFINITY_A,
ADAMANTIUM_ARCHIVE_A: 'https://ik.imagekit.io/adamantiumA',
ADAMANTIUM_ARCHIVE_B: 'https://ik.imagekit.io/adamantiumB',
ACTIVE: 'https://ik.imagekit.io/infinityA',
});

0 comments on commit aa8af30

Please sign in to comment.