Return to "origin.

This commit is contained in:
Thomas E Lackey 2020-06-13 01:46:50 -05:00
parent 8efc174e0e
commit e569d80f0b

View File

@ -8,7 +8,7 @@ import { InMemoryCache } from 'apollo-cache-inmemory';
import { createResolvers } from './resolvers';
const defaultServer = `${window.location.host}`;
const defaultServer = `${window.location.origin}`;
export const graphqlApi = config => {
const { api: { server = defaultServer, port = '', path = '/api' } } = config;