Skip to content

Commit db55d30

Browse files
committed
fix vercel condition
1 parent c2804d0 commit db55d30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

next.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ const nextConfig = {
2525
config.plugins.push(
2626
codecovWebpackPlugin({
2727
enableBundleAnalysis:
28-
process.env.GITHUB_ACTIONS === 'true' &&
29-
typeof process.env.CODECOV_TOKEN === 'string' &&
30-
process.env.CODECOV_TOKEN.length > 0,
28+
process.env.VERCEL_ENV === 'production' || process.env.VERCEL_ENV === 'preview',
3129
bundleName: 'sentry-docs',
3230
uploadToken: process.env.CODECOV_TOKEN,
3331
})

0 commit comments

Comments
 (0)