fix(joyent-cp-frontend): use a dynamic graphql hostname

This commit is contained in:
Sérgio Ramos 2017-05-31 22:48:02 +01:00
parent 39b6ca3a0d
commit df5d8655f9

View File

@ -16,7 +16,7 @@ export const client = new ApolloClient({
return `${o.__typename}:${id}`; return `${o.__typename}:${id}`;
}, },
networkInterface: createNetworkInterface({ networkInterface: createNetworkInterface({
uri: 'http://0.0.0.0:3000/graphql' uri: `http://${window.location.hostname}:3000/graphql`
}) })
}); });