@vendure/core
Version:
A modern, headless ecommerce framework
19 lines (18 loc) • 816 B
TypeScript
/**
* CI environment variables to check for.
* These are standard environment variables set by popular CI/CD systems.
* Exported for testing purposes.
*
* Note: hosting platforms such as Vercel and Netlify are intentionally NOT
* included here. Their `VERCEL` / `NETLIFY` flags are set at application
* runtime, not just during builds, so treating them as CI would suppress
* telemetry for every production deployment on those platforms. Build-only
* signals such as `NOW_BUILDER` (Vercel build step) are kept, since they are
* never present when the server is actually running.
*/
export declare const CI_ENV_VARS: string[];
/**
* Detects if the current process is running in a CI/CD environment.
* Returns true if any known CI environment variable is set.
*/
export declare function isCI(): boolean;