Spaces:
Paused
Paused
Download src/config.js from ZSCGR/Meting-API: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/ZSCGR/Meting-API/resolve/main/src/config.js
- Command line
-
hf download hf://spaces/ZSCGR/Meting-API/src/config.js
-
curl -L -o config.js https://huggingface.co/spaces/ZSCGR/Meting-API/resolve/main/src/config.js
393 Bytes
| import { get_runtime } from "./util.js" | |
| let OVERSEAS = globalThis?.Deno?.env?.get("OVERSEAS") || globalThis?.process?.env?.OVERSEAS | |
| const runtime = get_runtime() | |
| if (['cloudflare', 'vercel'].includes(runtime)) OVERSEAS = true | |
| const PORT = globalThis?.Deno?.env?.get("PORT") || globalThis?.process?.env?.PORT || 3000 | |
| OVERSEAS = Boolean(OVERSEAS) | |
| export default { | |
| OVERSEAS, | |
| PORT, | |
| } | |