Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Feb 22, 2024
1 parent 4ac37e4 commit b994f5a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ const nextConfig = {
},

webpack: (config, _options) => {
console.log(process.env.VERCEL_ENV);
console.log(typeof process.env.CODECOV_TOKEN, process.env.CODECOV_TOKEN?.length);
config.plugins.push(
codecovWebpackPlugin({
enableBundleAnalysis:
process.env.VERCEL_ENV === 'production' || process.env.VERCEL_ENV === 'preview',
enableBundleAnalysis: typeof process.env.CODECOV_TOKEN === 'string',
bundleName: 'sentry-docs',
uploadToken: process.env.CODECOV_TOKEN,
})
Expand Down

0 comments on commit b994f5a

Please sign in to comment.