Ocelot-Social/plugins/apollo-config.js
Robert Schäfer 2fcbdcb436 Fix refresh bug
This misconfiguration doesn't produce a bug without the docker
environment. Better to use docker also for development. Let's make it the
single source of truth.
2018-12-08 23:15:22 +01:00

14 lines
356 B
JavaScript

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