blob: 4b2532a73708ce7d971dda503758fa017acdd102 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import { Client, cacheExchange, fetchExchange } from "urql";
export const client = new Client({
url: "/graphql",
exchanges: [cacheExchange, fetchExchange],
fetchOptions: {
// Include cookies for session management
credentials: "include",
},
});
|