mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 18:29:36 +03:00
14 lines
249 B
JavaScript
14 lines
249 B
JavaScript
import { withData } from 'next-apollo'
|
|
import { HttpLink } from 'apollo-boost'
|
|
|
|
const config = {
|
|
link: new HttpLink({
|
|
uri: process.env.GRAPHQL_API_URI,
|
|
opts: {
|
|
credentials: 'same-origin'
|
|
}
|
|
})
|
|
}
|
|
|
|
export default withData(config)
|