Ocelot-Social/webapp/plugins/apollo-config.js
Matt Rider 1bb523a9ef Set up to work with vddrop
- on vdropzone-drop call vddrop function, which sends the mutation to the backend
2019-05-20 15:37:08 -03:00

15 lines
352 B
JavaScript

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