Add prod api url
This commit is contained in:
parent
4e4c8768f3
commit
7842aa19b4
|
|
@ -22,7 +22,7 @@ module.exports = {
|
||||||
apollo: {
|
apollo: {
|
||||||
clientConfigs: {
|
clientConfigs: {
|
||||||
default: {
|
default: {
|
||||||
httpEndpoint: 'http://localhost:8000/api/graphql/',
|
httpEndpoint: process.env.NODE_ENV !== 'production' ? 'http://localhost:8000/api/graphql/' : '/api/graphql/',
|
||||||
httpLinkOptions: {
|
httpLinkOptions: {
|
||||||
credentials: 'same-origin'
|
credentials: 'same-origin'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue