This commit is contained in:
Colin McDonnell
2026-01-28 07:47:52 +00:00
committed by pullfrog[bot]
parent 071e885d63
commit f77fecc2a0
8 changed files with 174 additions and 253 deletions
+9
View File
@@ -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");