MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isDevMode

Function isDevMode

packages/cli/src/utils/env.ts:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3 * In dev: files are .ts (running via tsx). In production: bundled into .js by tsup.
4 */
5export function isDevMode(): boolean {
6 try {
7 const url = new URL(import.meta.url);
8 return url.pathname.endsWith(".ts");
9 } catch {
10 // Fail-safe: if URL parsing fails for any reason, assume production.
11 // This ensures telemetry is never accidentally disabled in production builds.
12 return false;
13 }
14}

Callers 5

updateNoticesSuppressedFunction · 0.85
isAutoInstallDisabledFunction · 0.85
shouldTrackFunction · 0.85
renderDockerFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected