@@ -75,42 +75,80 @@ const nextConfig = {
75
75
} ,
76
76
}
77
77
78
- export default withSentryConfig ( nextConfig , {
79
- // For all available options, see:
80
- // https://github.com/getsentry/sentry-webpack-plugin#options
78
+ export default withSentryConfig (
79
+ withSentryConfig ( nextConfig , {
80
+ // For all available options, see:
81
+ // https://github.com/getsentry/sentry-webpack-plugin#options
81
82
82
- org : 'mgates-llc' ,
83
- project : 'dotabod-frontend' ,
83
+ org : 'mgates-llc' ,
84
+ project : 'dotabod-frontend' ,
84
85
85
- release : process . env . NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA ,
86
+ release : process . env . NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA ,
86
87
87
- // Only print logs for uploading source maps in CI
88
- silent : ! process . env . CI ,
88
+ // Only print logs for uploading source maps in CI
89
+ silent : ! process . env . CI ,
89
90
90
- // For all available options, see:
91
- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
91
+ // For all available options, see:
92
+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
92
93
93
- // Upload a larger set of source maps for prettier stack traces (increases build time)
94
- widenClientFileUpload : true ,
94
+ // Upload a larger set of source maps for prettier stack traces (increases build time)
95
+ widenClientFileUpload : true ,
95
96
96
- // Transpiles SDK to be compatible with IE11 (increases bundle size)
97
- transpileClientSDK : true ,
97
+ // Transpiles SDK to be compatible with IE11 (increases bundle size)
98
+ transpileClientSDK : true ,
98
99
99
- // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
100
- // This can increase your server load as well as your hosting bill.
101
- // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
102
- // side errors will fail.
103
- tunnelRoute : '/monitoring' ,
100
+ // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
101
+ // This can increase your server load as well as your hosting bill.
102
+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
103
+ // side errors will fail.
104
+ tunnelRoute : '/monitoring' ,
104
105
105
- // Hides source maps from generated client bundles
106
- hideSourceMaps : true ,
106
+ // Hides source maps from generated client bundles
107
+ hideSourceMaps : true ,
107
108
108
- // Automatically tree-shake Sentry logger statements to reduce bundle size
109
- disableLogger : true ,
109
+ // Automatically tree-shake Sentry logger statements to reduce bundle size
110
+ disableLogger : true ,
110
111
111
- // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
112
- // See the following for more information:
113
- // https://docs.sentry.io/product/crons/
114
- // https://vercel.com/docs/cron-jobs
115
- automaticVercelMonitors : true ,
116
- } )
112
+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
113
+ // See the following for more information:
114
+ // https://docs.sentry.io/product/crons/
115
+ // https://vercel.com/docs/cron-jobs
116
+ automaticVercelMonitors : true ,
117
+ } ) ,
118
+ {
119
+ // For all available options, see:
120
+ // https://www.npmjs.com/package/@sentry /webpack-plugin#options
121
+
122
+ org : 'mgates-llc' ,
123
+ project : 'dotabod-frontend' ,
124
+
125
+ // Only print logs for uploading source maps in CI
126
+ silent : ! process . env . CI ,
127
+
128
+ // For all available options, see:
129
+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
130
+
131
+ // Upload a larger set of source maps for prettier stack traces (increases build time)
132
+ widenClientFileUpload : true ,
133
+
134
+ // Automatically annotate React components to show their full name in breadcrumbs and session replay
135
+ reactComponentAnnotation : {
136
+ enabled : true ,
137
+ } ,
138
+
139
+ // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
140
+ // This can increase your server load as well as your hosting bill.
141
+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
142
+ // side errors will fail.
143
+ // tunnelRoute: "/monitoring",
144
+
145
+ // Automatically tree-shake Sentry logger statements to reduce bundle size
146
+ disableLogger : true ,
147
+
148
+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
149
+ // See the following for more information:
150
+ // https://docs.sentry.io/product/crons/
151
+ // https://vercel.com/docs/cron-jobs
152
+ automaticVercelMonitors : true ,
153
+ } ,
154
+ )
0 commit comments