Skip to content

Commit

Permalink
Allow modification to GRAPHQL_ENDPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
maka-io authored May 23, 2019
1 parent 11a17f9 commit 482796a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ export function initialize(config = {}) {

let terminatingLink;

// Allow GRAPHQL_ENDPOINT to be changed
if (config.httpLinkOptions && !config.httpLinkOptions.url) {
config.httpLinkOptions.url = GRAPHQL_ENDPOINT;
}

// We define the HTTP Link
const httpLink = new HttpLink({
uri: GRAPHQL_ENDPOINT,
...(config.httpLinkOptions || {}),
});

Expand Down

0 comments on commit 482796a

Please sign in to comment.