Download next.js/examples/cms-sanity/sanity/lib/client.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-sanity/sanity/lib/client.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-sanity/sanity/lib/client.ts
-
curl -L -o client.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-sanity/sanity/lib/client.ts
451 Bytes
| import { createClient } from "next-sanity"; | |
| import { apiVersion, dataset, projectId, studioUrl } from "@/sanity/lib/api"; | |
| export const client = createClient({ | |
| projectId, | |
| dataset, | |
| apiVersion, | |
| useCdn: true, | |
| perspective: "published", | |
| stega: { | |
| studioUrl, | |
| logger: console, | |
| filter: (props) => { | |
| if (props.sourcePath.at(-1) === "title") { | |
| return true; | |
| } | |
| return props.filterDefault(props); | |
| }, | |
| }, | |
| }); | |