mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Merged main into revalidate
This commit is contained in:
@@ -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));
|
Reference in New Issue
Block a user