mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 10:19:43 +03:00
14 lines
257 B
JavaScript
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)
|