import { createClient } from "next-sanity";
const PROJECT_ID = "55koyip3";
const DATASET = "production";
const API_VERSION = "2024-01-01";
const USE_CDN = false;
const ADMIN_TOKEN = process.env.SANITY_API_TOKEN || undefined;

export const adminClient = createClient({
  projectId: PROJECT_ID,
  dataset: DATASET,
  apiVersion: API_VERSION,
  useCdn: USE_CDN,
  token: ADMIN_TOKEN,
});

export const client = createClient({
  projectId: PROJECT_ID,
  dataset: DATASET,
  apiVersion: API_VERSION,
  useCdn: USE_CDN,
});
