Download next.js/test/e2e/app-dir/app-static/app/api/large-data/route.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-static/app/api/large-data/route.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-static/app/api/large-data/route.js
-
curl -L -o route.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-static/app/api/large-data/route.js
280 Bytes
| import { NextResponse } from 'next/server' | |
| export const revalidate = false | |
| export async function GET() { | |
| console.log('Load data') | |
| return NextResponse.json({ | |
| now: Date.now(), | |
| content: Array.from(new Array(3 * 1024 * 1024)) | |
| .map(() => 1) | |
| .join(''), | |
| }) | |
| } | |