Skip to content

Commit

Permalink
upgraded Sentry packages
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertschuler committed Nov 10, 2024
1 parent 355e02b commit 5378b23
Show file tree
Hide file tree
Showing 4 changed files with 2,140 additions and 432 deletions.
18 changes: 11 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
});

// Use the SentryWebpack plugin to upload the source maps during build step
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");

const {
NEXT_PUBLIC_SENTRY_DSN: SENTRY_DSN,
Expand Down Expand Up @@ -93,12 +93,16 @@ const nextConfig = {
NODE_ENV === 'production'
) {
config.plugins.push(
new SentryWebpackPlugin({
include: '.next',
ignore: ['node_modules'],
stripPrefix: ['webpack://_N_E/'],
urlPrefix: `~${basePath}/_next`,
release: COMMIT_SHA,
sentryWebpackPlugin({
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
// deprecated parameters from older version
//include: '.next',
//ignore: ['node_modules'],
//stripPrefix: ['webpack://_N_E/'],
//urlPrefix: `~${basePath}/_next`,
//release: COMMIT_SHA,
})
);
}
Expand Down
Loading

0 comments on commit 5378b23

Please sign in to comment.