react-code-dataset / next.js /test /integration /build-trace-extra-entries-turbo /app /lib /fetch-data.js
Download next.js/test/integration/build-trace-extra-entries-turbo/app/lib/fetch-data.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/build-trace-extra-entries-turbo/app/lib/fetch-data.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/build-trace-extra-entries-turbo/app/lib/fetch-data.js
-
curl -L -o fetch-data.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/build-trace-extra-entries-turbo/app/lib/fetch-data.js
225 Bytes
| import fs from 'fs' | |
| import path from 'path' | |
| const getCmsData = require('some-cms') | |
| try { | |
| fs.readdirSync(path.join(process.cwd(), 'public/exclude-me')) | |
| } catch (_) {} | |
| export function fetchData() { | |
| return getCmsData() | |
| } | |