forked from cerc-io/laconic-console
Return to "origin.
This commit is contained in:
parent
8efc174e0e
commit
e569d80f0b
@ -8,7 +8,7 @@ import { InMemoryCache } from 'apollo-cache-inmemory';
|
|||||||
|
|
||||||
import { createResolvers } from './resolvers';
|
import { createResolvers } from './resolvers';
|
||||||
|
|
||||||
const defaultServer = `${window.location.host}`;
|
const defaultServer = `${window.location.origin}`;
|
||||||
|
|
||||||
export const graphqlApi = config => {
|
export const graphqlApi = config => {
|
||||||
const { api: { server = defaultServer, port = '', path = '/api' } } = config;
|
const { api: { server = defaultServer, port = '', path = '/api' } } = config;
|
||||||
|
Loading…
Reference in New Issue
Block a user