From df5d8655f9c9d236d847b6c64e70cdb0bb8e6777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 31 May 2017 22:48:02 +0100 Subject: [PATCH] fix(joyent-cp-frontend): use a dynamic graphql hostname --- packages/cp-frontend/src/state/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cp-frontend/src/state/store.js b/packages/cp-frontend/src/state/store.js index a8de4ef7..505d5993 100644 --- a/packages/cp-frontend/src/state/store.js +++ b/packages/cp-frontend/src/state/store.js @@ -16,7 +16,7 @@ export const client = new ApolloClient({ return `${o.__typename}:${id}`; }, networkInterface: createNetworkInterface({ - uri: 'http://0.0.0.0:3000/graphql' + uri: `http://${window.location.hostname}:3000/graphql` }) });