diff --git a/app/src/main.js b/app/src/main.js index 743e1edf..92512308 100644 --- a/app/src/main.js +++ b/app/src/main.js @@ -9,10 +9,6 @@ import store from './store' import router from './router' import apollo from './modules/gql/apolloClient' -// Temporarily commenting out for linting/testing purposes -// const BASE = window.location.origin -// const uri = `${BASE}/api/graphql` - const apolloProvider = new VueApollo({ defaultClient: apollo }) diff --git a/app/src/modules/gql/apolloClient.js b/app/src/modules/gql/apolloClient.js index a9b3ad2b..1d33eed6 100644 --- a/app/src/modules/gql/apolloClient.js +++ b/app/src/modules/gql/apolloClient.js @@ -1,7 +1,5 @@ import { ApolloClient, ApolloLink, InMemoryCache, HttpLink } from 'apollo-boost' -// NOTE: Putting BASE and uri here instead of in main still works, -// and removes need for passing as variable const BASE = window.location.origin const uri = `${BASE}/api/graphql` const httpLink = new HttpLink({ uri })