Skip to content

Commit

Permalink
Add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Aug 30, 2024
1 parent ed2244f commit 11878cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mixpanel/mixpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import config from "../config"

// We are sending analytics only in prod or if it's enabled here
const shouldSendAnalytics =
// process is accessible only thanks to VITE env replacement
process.env.NODE_ENV === "development" ? config.SEND_ANALYTICS_IN_DEV : true

if (shouldSendAnalytics) {
Expand Down

0 comments on commit 11878cc

Please sign in to comment.