{"ast":null,"code":"function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar sanityClient = require('@sanity/client');\n\nvar sanityImage = require('@sanity/image-url');\n\nconst options = {\n  // Find your project ID and dataset in `sanity.json` in your studio project\n  dataset: 'production',\n  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,\n  useCdn: true // useCdn == true gives fast, cheap responses using a globally distributed cache.\n  // Set this to false if your application require the freshest possible\n  // data always (potentially slightly slower and a bit more expensive).\n\n};\nconst client = sanityClient(options);\nmodule.exports.imageBuilder = sanityImage(client);\nmodule.exports.previewClient = sanityClient(_objectSpread(_objectSpread({}, options), {}, {\n  useCdn: false,\n  token: process.env.SANITY_API_TOKEN\n}));\nmodule.exports.client = client; // import sanityClient from '@sanity/client'\n// import sanityImage from '@sanity/image-url'\n// const options = {\n//   // Find your project ID and dataset in `sanity.json` in your studio project\n//   dataset: 'production',\n//   projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,\n//   useCdn: process.env.NODE_ENV === 'production',\n//   // useCdn == true gives fast, cheap responses using a globally distributed cache.\n//   // Set this to false if your application require the freshest possible\n//   // data always (potentially slightly slower and a bit more expensive).\n// }\n// const client = sanityClient(options)\n// export const imageBuilder = sanityImage(client)\n// export const previewClient = sanityClient({\n//   ...options,\n//   useCdn: false,\n//   token: process.env.SANITY_API_TOKEN,\n// })\n// export default client","map":null,"metadata":{},"sourceType":"script"}