Skip to content

Commit

Permalink
only in production
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Aug 14, 2023
1 parent 4b2a814 commit 0f0f0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default defineConfig(({ mode }) => ({
plugins: [
createHtmlPlugin({
inject: {
tags: process.env.VERCEL ? [previewAnalyticsTag] : [],
tags: process.env.VERCEL_ENV === 'production' ? [previewAnalyticsTag] : [],
},
}),
react({
Expand Down

0 comments on commit 0f0f0d0

Please sign in to comment.