1- import { withSentryConfig } from '@sentry/nextjs' ;
21/** @type {import('next').NextConfig } */
32import { fileURLToPath } from 'node:url' ;
3+ import { withSentryConfig } from '@sentry/nextjs' ;
44import createJiti from 'jiti' ;
55import createNextIntlPlugin from 'next-intl/plugin' ;
66
@@ -24,37 +24,41 @@ const nextConfig = withNextIntl({
2424 } ,
2525} ) ;
2626
27- export default withSentryConfig ( nextConfig , {
28- // For all available options, see:
29- // https://github.com/getsentry/sentry-webpack-plugin#options
27+ export default withSentryConfig (
28+ nextConfig ,
29+ {
30+ // For all available options, see:
31+ // https://github.com/getsentry/sentry-webpack-plugin#options
3032
31- org : process . env . SENTRY_ORG_NAME ,
32- project : process . env . SENTRY_PROJECT_NAME ,
33+ org : process . env . SENTRY_ORG_NAME ,
34+ project : process . env . SENTRY_PROJECT_NAME ,
3335
34- // Only print logs for uploading source maps in CI
35- silent : ! process . env . CI ,
36+ // Only print logs for uploading source maps in CI
37+ silent : ! process . env . CI ,
3638
37- // For all available options, see:
38- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
39+ // For all available options, see:
40+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
3941
40- // Upload a larger set of source maps for prettier stack traces (increases build time)
41- widenClientFileUpload : true ,
42+ // Upload a larger set of source maps for prettier stack traces (increases build time)
43+ widenClientFileUpload : true ,
4244
43- // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
44- // This can increase your server load as well as your hosting bill.
45- // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
46- // side errors will fail.
47- // tunnelRoute: "/ monitoring" ,
45+ // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
46+ // This can increase your server load as well as your hosting bill.
47+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
48+ // side errors will fail.
49+ tunnelRoute : '/api/sentry- monitoring' ,
4850
49- // Hides source maps from generated client bundles
50- hideSourceMaps : true ,
51+ // Hides source maps from generated client bundles
52+ hideSourceMaps : true ,
5153
52- // Automatically tree-shake Sentry logger statements to reduce bundle size
53- disableLogger : true ,
54+ // Automatically tree-shake Sentry logger statements to reduce bundle size
55+ disableLogger : true ,
5456
55- // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
56- // See the following for more information:
57- // https://docs.sentry.io/product/crons/
58- // https://vercel.com/docs/cron-jobs
59- automaticVercelMonitors : true ,
60- } , process . env . SENTRY_FEATURE_ENABLED ) ;
57+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
58+ // See the following for more information:
59+ // https://docs.sentry.io/product/crons/
60+ // https://vercel.com/docs/cron-jobs
61+ // automaticVercelMonitors: true,
62+ } ,
63+ process . env . SENTRY_FEATURE_ENABLED
64+ ) ;
0 commit comments