react-code-dataset / next.js /packages /next /src /next-devtools /userspace /app /terminal-logging-config.ts
Download next.js/packages/next/src/next-devtools/userspace/app/terminal-logging-config.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/next-devtools/userspace/app/terminal-logging-config.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/next-devtools/userspace/app/terminal-logging-config.ts
-
curl -L -o terminal-logging-config.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/next-devtools/userspace/app/terminal-logging-config.ts
434 Bytes
| export function getTerminalLoggingConfig(): | |
| | false | |
| | boolean | |
| | { | |
| depthLimit?: number | |
| edgeLimit?: number | |
| showSourceLocation?: boolean | |
| } { | |
| try { | |
| return JSON.parse( | |
| process.env.__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL || 'false' | |
| ) | |
| } catch { | |
| return false | |
| } | |
| } | |
| export function getIsTerminalLoggingEnabled(): boolean { | |
| const config = getTerminalLoggingConfig() | |
| return Boolean(config) | |
| } | |