Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 72e10ad

Browse files
committed
Feature #1830
1 parent 51cfe2c commit 72e10ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ export function createApp (ssrContext, config): { app: Vue, router: any, store:
7272
Object.keys(filtersObject).forEach(key => {
7373
Vue.filter(key, filtersObject[key])
7474
})
75-
const httpLink = new HttpLink({
76-
uri: store.state.config.server.protocol + '://' + store.state.config.graphql.host + ':' + store.state.config.graphql.port + '/graphql'
77-
})
75+
const httpLink = new HttpLink({
76+
uri: store.state.config.graphql.host.indexOf('://') >== 0 ? store.state.config.graphql.host : (store.state.config.server.protocol + '://' + store.state.config.graphql.host + ':' + store.state.config.graphql.port + '/graphql')
77+
})
7878

7979
const apolloClient = new ApolloClient({
8080
link: httpLink,

0 commit comments

Comments
 (0)