mernmail-website/sanity/lib/client.js

10 lines
281 B
JavaScript

import { createClient } from "next-sanity";
import { apiVersion, dataset, projectId } from "../env";
export const client = createClient({
projectId,
dataset,
apiVersion,
useCdn: true // Set to false if statically generating pages, using ISR or tag-based revalidation
});