Add prod api url

This commit is contained in:
Ramon Wenger 2018-08-08 19:11:45 +02:00
parent 4e4c8768f3
commit 7842aa19b4
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module.exports = {
apollo: {
clientConfigs: {
default: {
httpEndpoint: 'http://localhost:8000/api/graphql/',
httpEndpoint: process.env.NODE_ENV !== 'production' ? 'http://localhost:8000/api/graphql/' : '/api/graphql/',
httpLinkOptions: {
credentials: 'same-origin'
},