"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _urql = require("urql");

const ssrCache = (0, _urql.ssrExchange)({
  initialState: window.__URQL__
});
const client = new _urql.Client({
  url: String(process.env.API_URL),
  exchanges: [_urql.dedupExchange, _urql.cacheExchange, // Put the exchange returned by calling ssrExchange after your cacheExchange,
  // but before any asynchronous exchanges like the fetchExchange:
  ssrCache, _urql.fetchExchange]
});
var _default = client;
exports.default = _default;