@smooai/utils
Version:
A collection of shared utilities and tools used across SmooAI projects. This package provides common functionality to standardize and simplify development across all SmooAI repositories.
14 lines (13 loc) • 646 B
JavaScript
//#region src/env/index.ts
function isRunningLocally() {
return Boolean(process.env.SST_DEV) || Boolean(process.env.IS_LOCAL) || Boolean(process.env.IS_DEPLOYED_STAGE) && process.env.IS_DEPLOYED_STAGE !== "true";
}
function isRunningInProd() {
return process.env.SST_STAGE === "prod" || process.env.SST_STAGE === "production" || Boolean(process.env.IS_DEPLOYED_STAGE) && process.env.IS_DEPLOYED_STAGE === "true";
}
function isRunningInBrowser() {
return typeof window !== "undefined" && typeof window.document !== "undefined";
}
//#endregion
export { isRunningInBrowser, isRunningInProd, isRunningLocally };
//# sourceMappingURL=index.mjs.map