1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

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`
}) })
}); });