Skip to content

Commit

Permalink
Merge pull request #367 from belgattitude/typing-sentry-options
Browse files Browse the repository at this point in the history
chore(next.config): typing sentry options
  • Loading branch information
belgattitude committed Sep 3, 2021
2 parents d242518 + a1a42dc commit 092fb62
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/web-app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,21 @@ const nextConfig = {
let config = withNextTranspileModules(nextConfig);

if (process.env.NEXT_DISABLE_SENTRY !== '1') {
config = withSentryConfig(config, {
/** @type {Partial<import('@sentry/nextjs/dist/config/types').SentryWebpackPluginOptions>} */
const sentryWebpackPluginOptions = {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, org, project, authToken, configFile, stripPrefix,
// urlPrefix, include, ignore
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
dryRun:
process.env.NODE_ENV !== 'production' ||
process.env.NEXT_SENTRY_DRY_RUN === '1',
});
};

config = withSentryConfig(config, sentryWebpackPluginOptions);
}

if (process.env.ANALYZE === 'true') {
Expand Down

2 comments on commit 092fb62

@vercel
Copy link

@vercel vercel bot commented on 092fb62 Sep 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 092fb62 Sep 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.