Meting-API / src /config.js
ZSCGR's picture
Upload folder using huggingface_hub
5ed446f verified
raw
history blame contribute delete
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,
}