Skip to content

Commit

Permalink
fix: enable Umami tracking only in production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnyx committed Jan 26, 2025
1 parent bb78590 commit e9ea923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default defineNuxtConfig({
host: process.env.UMAMI_HOST,
autoTrack: true,
ignoreLocalhost: true,
// enabled: !!process.env.UMAMI_TOKEN && !!process.env.UMAMI_HOST,
enabled: !!process.env.UMAMI_TOKEN && !!process.env.UMAMI_HOST && process.env.NODE_ENV === "production",
// proxy: 'cloak',
// useDirective: true,
// excludeQueryParams: false,
Expand Down

0 comments on commit e9ea923

Please sign in to comment.