text: import { createCurrentUserHook, createClient } from 'next-sanity'
  import createImageUrlBuilder from '@sanity/image-url'
  
  export const config = {
    dataset: 'production',
    projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,
    apiVersion: '2021-10-21',
    useCdn: process.env.NODE_ENV === 'production',
  }
  
  export const sanityClient = createClient(config)
  export const urlFor = (source) => createImageUrlBuilder(config).image(source)
  export const currentUser = createCurrentUserHook(config)
  