Merged main into revalidate

This commit is contained in:
Henrik Larsson
2023-07-03 14:10:53 +02:00
4 changed files with 62 additions and 65 deletions

View File

@@ -1,4 +1,5 @@
import { createClient } from "next-sanity";
import { cache } from 'react';
export const projectId = process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!;
export const dataset = process.env.NEXT_PUBLIC_SANITY_DATASET!;
@@ -9,4 +10,6 @@ export const client = createClient({
dataset,
apiVersion,
useCdn: false,
});
});
export const clientFetch = cache(client.fetch.bind(client));