mernmail-website/sanity/lib/client.js

11 lines
281 B
JavaScript
Raw Normal View History

2024-11-08 09:43:04 +01:00
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
});