2020-03-03 21:17:24 +03:00

14 lines
257 B
JavaScript

import { withData } from 'next-apollo'
import { HttpLink } from 'apollo-boost'
const config = {
link: new HttpLink({
uri: 'http://localhost:3000/api/graphql',
opts: {
credentials: 'same-origin'
}
})
}
export default withData(config)