1
- import { withSentryConfig } from '@sentry/nextjs' ;
1
+ import { withSentryConfig } from '@sentry/nextjs' ;
2
2
/** @type {import('next').NextConfig } */
3
3
const nextConfig = { } ;
4
4
5
5
export default withSentryConfig ( nextConfig , {
6
- // For all available options, see:
7
- // https://github.com/getsentry/sentry-webpack-plugin#options
6
+ // For all available options, see:
7
+ // https://github.com/getsentry/sentry-webpack-plugin#options
8
8
9
- org : "alex-org-fm" ,
10
- project : "javascript-nextjs" ,
9
+ org : "alex-org-fm" ,
10
+ project : "javascript-nextjs" ,
11
11
12
- // Only print logs for uploading source maps in CI
13
- silent : ! process . env . CI ,
12
+ // Only print logs for uploading source maps in CI
13
+ silent : ! process . env . CI ,
14
14
15
- // For all available options, see:
16
- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
15
+ // For all available options, see:
16
+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
17
17
18
- // Upload a larger set of source maps for prettier stack traces (increases build time)
19
- widenClientFileUpload : true ,
18
+ // Upload a larger set of source maps for prettier stack traces (increases build time)
19
+ widenClientFileUpload : true ,
20
20
21
- // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
22
- // This can increase your server load as well as your hosting bill.
23
- // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
24
- // side errors will fail.
25
- tunnelRoute : "/monitoring" ,
21
+ // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
22
+ // This can increase your server load as well as your hosting bill.
23
+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
24
+ // side errors will fail.
25
+ tunnelRoute : "/monitoring" ,
26
26
27
- // Hides source maps from generated client bundles
28
- hideSourceMaps : true ,
27
+ // Hides source maps from generated client bundles
28
+ hideSourceMaps : true ,
29
29
30
- // Automatically tree-shake Sentry logger statements to reduce bundle size
31
- disableLogger : true ,
30
+ // Automatically tree-shake Sentry logger statements to reduce bundle size
31
+ disableLogger : true ,
32
32
33
- // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
34
- // See the following for more information:
35
- // https://docs.sentry.io/product/crons/
36
- // https://vercel.com/docs/cron-jobs
37
- automaticVercelMonitors : true ,
33
+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
34
+ // See the following for more information:
35
+ // https://docs.sentry.io/product/crons/
36
+ // https://vercel.com/docs/cron-jobs
37
+ automaticVercelMonitors : true ,
38
+ unstable_sentryWebpackPluginOptions : {
39
+ applicationKey : 'sentry-demo'
40
+ }
38
41
} ) ;
0 commit comments