Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web_app/src/utils/devLog.ts from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/utils/devLog.ts
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/web_app/src/utils/devLog.ts
-
curl -L -o devLog.ts https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/utils/devLog.ts
405 Bytes
| /** Set `VITE_DEBUG_HOME=true` in `.env.local` to enable Home page trace logs. */ | |
| export function createDevLogger(envFlag: string): (...args: unknown[]) => void { | |
| const enabled = | |
| import.meta.env.DEV && import.meta.env[envFlag as keyof ImportMetaEnv] === 'true' | |
| return (...args: unknown[]) => { | |
| if (enabled) console.log(...args) | |
| } | |
| } | |
| export const homeLog = createDevLogger('VITE_DEBUG_HOME') | |