Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
const { i18n } = require("./next-i18next.config");

// 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 @@ -92,12 +92,13 @@ const nextConfig = {
NODE_ENV === "production"
) {
config.plugins.push(
new SentryWebpackPlugin({
sentryWebpackPlugin({
include: ".next",
ignore: ["node_modules"],
stripPrefix: ["webpack://_N_E/"],
urlPrefix: `~${basePath}/_next`,
release: COMMIT_SHA,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think all these parameters are already deprecated (at least using version 8.x), are they? Why don't you upgrade to version 8.x yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, will update it to v8.

validate: true,
})
);
}
Expand Down
Loading