Download next.js/examples/cms-sanity/sanity/lib/token.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 148 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-sanity/sanity/lib/token.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-sanity/sanity/lib/token.ts
-
curl -L -o token.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-sanity/sanity/lib/token.ts
148 Bytes
| import "server-only"; | |
| export const token = process.env.SANITY_API_READ_TOKEN; | |
| if (!token) { | |
| throw new Error("Missing SANITY_API_READ_TOKEN"); | |
| } | |