Update
This commit is contained in:
committed by
pullfrog[bot]
parent
071e885d63
commit
f77fecc2a0
@@ -0,0 +1,9 @@
|
||||
import { existsSync } from "node:fs";
|
||||
|
||||
export const isCloudflareSandbox =
|
||||
!!process.env.CLOUDFLARE_APPLICATION_ID && !!process.env.SANDBOX_VERSION;
|
||||
|
||||
export const isGitHubActions = !!process.env.GITHUB_ACTIONS;
|
||||
|
||||
// detect if running inside Docker container (CI tests run in Docker with host env vars)
|
||||
export const isInsideDocker = existsSync("/.dockerenv");
|
||||
Reference in New Issue
Block a user