2018-11-27 10:51:33 +00:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2018-11-26 15:57:11 +00:00
|
|
|
import {HttpLink} from "apollo-link-http";
|
|
|
|
import ApolloClient from "apollo-client/ApolloClient";
|
|
|
|
import {InMemoryCache} from "apollo-cache-inmemory";
|
|
|
|
|
|
|
|
const satelliteUrl = new HttpLink({
|
|
|
|
uri: 'http://192.168.1.90:8081/api/graphql/v0',
|
|
|
|
});
|
|
|
|
|
2018-11-27 10:51:33 +00:00
|
|
|
export default new ApolloClient({
|
2018-11-26 15:57:11 +00:00
|
|
|
link: satelliteUrl,
|
|
|
|
cache: new InMemoryCache(),
|
|
|
|
connectToDevTools: true,
|
|
|
|
});
|