Skip to content

Commit

Permalink
remove sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Jan 24, 2025
1 parent a2d8e81 commit 23b3661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@ const sentryWebpackPluginOptions = {
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: !sentryEnabled, // Silence output when Sentry is disabled
dryRun: !sentryEnabled, // Don't upload source maps when Sentry is disabled
sourceMaps: {
include: ["./.next"],
ignore: ["node_modules"],
urlPrefix: "~/_next",
stripPrefix: ["webpack://_N_E/"],
validate: true,
cleanArtifacts: true,
},
sourceMaps: false,
};

// Export the module with conditional Sentry configuration
Expand Down
2 changes: 1 addition & 1 deletion web/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,

// Capture unhandled exceptions and performance data
enableTracing: true,
enableTracing: false,
integrations: [],
tracesSampleRate: 0.1,
});
Expand Down

0 comments on commit 23b3661

Please sign in to comment.