Download next.js/packages/next/src/client/components/static-generation-bailout.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/components/static-generation-bailout.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/client/components/static-generation-bailout.ts
-
curl -L -o static-generation-bailout.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/components/static-generation-bailout.ts
403 Bytes
| const NEXT_STATIC_GEN_BAILOUT = 'NEXT_STATIC_GEN_BAILOUT' | |
| export class StaticGenBailoutError extends Error { | |
| public readonly code = NEXT_STATIC_GEN_BAILOUT | |
| } | |
| export function isStaticGenBailoutError( | |
| error: unknown | |
| ): error is StaticGenBailoutError { | |
| if (typeof error !== 'object' || error === null || !('code' in error)) { | |
| return false | |
| } | |
| return error.code === NEXT_STATIC_GEN_BAILOUT | |
| } | |