Skip to content

Commit

Permalink
Sentry project and org setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucieo committed Sep 21, 2023
1 parent 54d4c49 commit 7454ce3
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,35 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
});

module.exports = withBundleAnalyzer(
withContentlayer(module.exports, {
// 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,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

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

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
})
withContentlayer(
withSentryConfig(
module.exports,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,

org: process.env.NEXT_PUBLIC_SENTRY_ORG,
project: process.env.NEXT_PUBLIC_SENTRY_PROJECT,
},
{
// 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,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

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

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

0 comments on commit 7454ce3

Please sign in to comment.