MCPcopy Index your code
hub / github.com/21st-dev/1code / isDev

Function isDev

src/main/lib/analytics.ts:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59// Set FORCE_ANALYTICS=true to test analytics in development
60// Use a function to check lazily after app is ready
61function isDev(): boolean {
62 try {
63 return !app.isPackaged && process.env.FORCE_ANALYTICS !== "true"
64 } catch {
65 // App not ready yet, assume dev mode
66 return process.env.FORCE_ANALYTICS !== "true"
67 }
68}
69
70/**
71 * Get common properties for all events

Callers 3

initAnalyticsFunction · 0.70
captureFunction · 0.70
identifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected