Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(next.config): typing sentry options #367

Merged
merged 1 commit into from
Sep 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 12 additions & 2 deletions apps/web-app/next.config.js
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