Ocelot-Social/plugins/apollo-config.js
2018-11-26 17:55:39 +01:00

14 lines
352 B
JavaScript

export default function({ app }) {
const backendUrl = process.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
}
}