Skip to content

Commit 3bad2cd

Browse files
[Snyk] Upgrade @sentry/nextjs from 8.20.0 to 8.22.0 (#32)
* fix: upgrade @sentry/nextjs from 8.20.0 to 8.22.0 Snyk has created this PR to upgrade @sentry/nextjs from 8.20.0 to 8.22.0. See this package in npm: @sentry/nextjs See this project in Snyk: https://app.snyk.io/org/angeloreale/project/0ce13fdb-820a-4a03-9e39-a46edd73375a?utm_source=github&utm_medium=referral&page=upgrade-pr * ar(config) sentry --------- Co-authored-by: snyk-bot <[email protected]>
1 parent 87a9784 commit 3bad2cd

9 files changed

+257
-130
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ next-env.d.ts
4242

4343
# private
4444
*.private
45-
stub.json
45+
stub.json
46+
# Sentry Config File
47+
.env.sentry-build-plugin

next.config.mjs

+31-37
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { withSentryConfig } from '@sentry/nextjs';
12
import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin';
23

34
// const headers = [
@@ -65,49 +66,42 @@ const nextConfig = {
6566
},
6667
};
6768

68-
export default nextConfig;
69+
export default withSentryConfig(nextConfig, {
70+
// For all available options, see:
71+
// https://github.com/getsentry/sentry-webpack-plugin#options
6972

70-
// Injected content via Sentry wizard below
73+
org: 'dreampip',
74+
project: 'hypnos',
7175

72-
// const { withSentryConfig } = require('@sentry/nextjs');
76+
// Only print logs for uploading source maps in CI
77+
silent: !process.env.CI,
7378

74-
// module.exports = withSentryConfig(
75-
// module.exports,
76-
// {
77-
// // For all available options, see:
78-
// // https://github.com/getsentry/sentry-webpack-plugin#options
79+
// For all available options, see:
80+
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
7981

80-
// // Suppresses source map uploading logs during build
81-
// silent: true,
82-
// org: 'dreampip',
83-
// project: 'hypnos',
84-
// },
85-
// {
86-
// // For all available options, see:
87-
// // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
82+
// Upload a larger set of source maps for prettier stack traces (increases build time)
83+
widenClientFileUpload: true,
8884

89-
// // Upload a larger set of source maps for prettier stack traces (increases build time)
90-
// widenClientFileUpload: true,
91-
92-
// // Transpiles SDK to be compatible with IE11 (increases bundle size)
93-
// transpileClientSDK: true,
85+
// Automatically annotate React components to show their full name in breadcrumbs and session replay
86+
reactComponentAnnotation: {
87+
enabled: true,
88+
},
9489

95-
// // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
96-
// // This can increase your server load as well as your hosting bill.
97-
// // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
98-
// // side errors will fail.
99-
// // tunnelRoute: "/monitoring",
90+
// Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
91+
// This can increase your server load as well as your hosting bill.
92+
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
93+
// side errors will fail.
94+
// tunnelRoute: "/monitoring",
10095

101-
// // Hides source maps from generated client bundles
102-
// hideSourceMaps: true,
96+
// Hides source maps from generated client bundles
97+
hideSourceMaps: true,
10398

104-
// // Automatically tree-shake Sentry logger statements to reduce bundle size
105-
// disableLogger: true,
99+
// Automatically tree-shake Sentry logger statements to reduce bundle size
100+
disableLogger: true,
106101

107-
// // Enables automatic instrumentation of Vercel Cron Monitors.
108-
// // See the following for more information:
109-
// // https://docs.sentry.io/product/crons/
110-
// // https://vercel.com/docs/cron-jobs
111-
// automaticVercelMonitors: true,
112-
// },
113-
// );
102+
// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
103+
// See the following for more information:
104+
// https://docs.sentry.io/product/crons/
105+
// https://vercel.com/docs/cron-jobs
106+
automaticVercelMonitors: true,
107+
});

0 commit comments

Comments
 (0)