12 lines
276 B
TypeScript
12 lines
276 B
TypeScript
import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client';
|
|
|
|
const httpLink = createHttpLink({
|
|
uri: process.env.NEXT_PUBLIC_SERVER_URL,
|
|
credentials: 'include'
|
|
})
|
|
|
|
export const client = new ApolloClient({
|
|
link: httpLink,
|
|
cache: new InMemoryCache()
|
|
})
|