Skip to content

Commit

Permalink
fix: sentry config check with env (#1742)
Browse files Browse the repository at this point in the history
Submit a pull request for this project.

<!-- If you have an Issue that related to this Pull Request, you can
copy this Issue's description -->

# Why? 
<!-- 
> Related to which issue?
> Why we need this pull request?
> What is the user story for this pull request? 
-->


# What?
<!-- 
> Can you describe this feature in detail?
> Who can benefit from it? 
-->


# How?
<!-- 
> Do you have a simple description of how this pull request is
implemented?
-->
  • Loading branch information
wangkailang committed May 7, 2024
1 parent 283f2f9 commit e37c60c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/datasheet/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const sentryWebpackPluginOptions = {
release: process.env.WEB_CLIENT_VERSION ?? '',
silent: false, // Suppresses all logs
hideSourceMaps: true,
debug: true
debug: false

// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
Expand Down Expand Up @@ -120,4 +120,4 @@ const plugins = [
];

const config = () => plugins.reduce((acc, next) => next(acc), nextConfig);
module.exports = config;
module.exports = isProd && process.env.SENTRY_AUTH_TOKEN_VIKA ? withSentryConfig(config, sentryWebpackPluginOptions, sentryWebpackPluginOptions) : config;

0 comments on commit e37c60c

Please sign in to comment.