Spaces:
Sleeping
Sleeping
Download apps/api/src/lib/deployment.ts from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/lib/deployment.ts
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/api/src/lib/deployment.ts
-
curl -L -o deployment.ts https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/lib/deployment.ts
638 Bytes
| import { config } from "../config"; | |
| export function isSelfHosted(): boolean { | |
| return config.USE_DB_AUTHENTICATION !== true; | |
| } | |
| export function getErrorContactMessage(errorId?: string): string { | |
| if (isSelfHosted()) { | |
| return errorId | |
| ? `An error occurred. Please check your logs for more details. Error ID: ${errorId}` | |
| : "An error occurred. Please check your logs for more details."; | |
| } else { | |
| return errorId | |
| ? `An unexpected error occurred. Please contact help@firecrawl.com for help. Your exception ID is ${errorId}` | |
| : "An unexpected error occurred. Please contact help@firecrawl.com for help."; | |
| } | |
| } | |