Skip to content

Commit

Permalink
Update Sentry's webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Oct 3, 2024
1 parent cbfc6d6 commit d594b2c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 34 deletions.
2 changes: 1 addition & 1 deletion apps/charterafrica/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const nextConfig = {
};

module.exports = withSentryConfig(nextConfig, {
silent: true,
silent: !process.env.CI,
hideSourceMaps: true,
org: process.env.SENTRY_ORG,
authToken: process.env.SENTRY_AUTH_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion apps/civicsignalblog/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const nextConfig = {
};

module.exports = withSentryConfig(nextConfig, {
silent: true,
silent: !process.env.CI,
hideSourceMaps: true,
org: process.env.SENTRY_ORG,
authToken: process.env.SENTRY_AUTH_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion apps/codeforafrica/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const nextConfig = {
};

module.exports = withSentryConfig(nextConfig, {
silent: true,
silent: !process.env.CI,
hideSourceMaps: true,
org: process.env.SENTRY_ORG,
authToken: process.env.SENTRY_AUTH_TOKEN,
Expand Down
33 changes: 3 additions & 30 deletions apps/roboshield/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,9 @@ const nextConfig = {
};

module.exports = withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,

// Only print logs for uploading source maps in CI
silent: !process.env.CI,

// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
org: process.env.SENTRY_ORG,
authToken: process.env.SENTRY_AUTH_TOKEN,
project: process.env.SENTRY_PROJECT,
});
2 changes: 1 addition & 1 deletion apps/vpnmanager/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const nextConfig = {
};

export default withSentryConfig(nextConfig, {
silent: true,
silent: !process.env.CI,
hideSourceMaps: true,
org: process.env.SENTRY_ORG,
authToken: process.env.SENTRY_AUTH_TOKEN,
Expand Down

0 comments on commit d594b2c

Please sign in to comment.