"use strict";

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

require("isomorphic-unfetch");

var _urql = require("urql");

const getClient = ssrCache => new _urql.Client({
  url: String(process.env.API_URL),
  exchanges: [_urql.dedupExchange, _urql.cacheExchange, ssrCache, _urql.fetchExchange],
  // Needed for SSR
  suspense: true
});

var _default = getClient;
exports.default = _default;