Download src/lib/demo.ts from AnesKAM/gen: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/AnesKAM/gen/resolve/main/src/lib/demo.ts
- Command line
-
hf download hf://spaces/AnesKAM/gen/src/lib/demo.ts
-
curl -L -o demo.ts https://huggingface.co/spaces/AnesKAM/gen/resolve/main/src/lib/demo.ts
445 Bytes
| // Shared demo-account constants. Safe to import from client components. | |
| export const DEMO_EMAIL = "demo@nexgo.app"; | |
| export const DEMO_PASSWORD = "demo1234"; | |
| /** | |
| * Server-side only. Set SEED_DEMO=false to run without the public demo account: | |
| * nothing is seeded, the demo sign-in button disappears and the account is no | |
| * longer treated specially. | |
| */ | |
| export function isDemoEnabled(): boolean { | |
| return process.env.SEED_DEMO !== "false"; | |
| } | |