Download next.js/test/e2e/basepath/pages/error-route.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 188 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/basepath/pages/error-route.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/basepath/pages/error-route.js
-
curl -L -o error-route.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/basepath/pages/error-route.js
188 Bytes
| export async function getServerSideProps() { | |
| // We will use this route to simulate a route change errors | |
| throw new Error('KABOOM!') | |
| } | |
| export default function Page() { | |
| return null | |
| } | |