Spaces:
Paused
Paused
File size: 393 Bytes
5ed446f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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,
}
|