UNPKG

@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.

18 lines (17 loc) 824 B
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); require("../chunk-CoPdw6nB.cjs"); //#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 exports.isRunningInBrowser = isRunningInBrowser; exports.isRunningInProd = isRunningInProd; exports.isRunningLocally = isRunningLocally; //# sourceMappingURL=index.cjs.map