Merge pull request #22 from Human-Connection/fix-proxy-reload-issue

Fix proxy reload issue
This commit is contained in:
Grzegorz Leoniec 2018-11-27 10:45:06 +01:00 committed by GitHub
commit f71c4a1b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,12 @@
export default function({ app }) {
const backendUrl = process.BACKEND_URL || 'http://localhost:4000'
return {
httpEndpoint: '/api',
httpEndpoint: process.server ? backendUrl : '/api',
httpLinkOptions: {
credentials: 'same-origin'
},
credentials: true,
tokenName: 'apollo-token',
tokenName: 'human-connection-token',
persisting: false,
websocketsOnly: false
}