Skip to content

Commit

Permalink
fix vercel condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Feb 22, 2024
1 parent c2804d0 commit db55d30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const nextConfig = {
config.plugins.push(
codecovWebpackPlugin({
enableBundleAnalysis:
process.env.GITHUB_ACTIONS === 'true' &&
typeof process.env.CODECOV_TOKEN === 'string' &&
process.env.CODECOV_TOKEN.length > 0,
process.env.VERCEL_ENV === 'production' || process.env.VERCEL_ENV === 'preview',
bundleName: 'sentry-docs',
uploadToken: process.env.CODECOV_TOKEN,
})
Expand Down

0 comments on commit db55d30

Please sign in to comment.