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
@@ -12,37 +12,41 @@ const nextConfig = withNextIntl({
1212 transpilePackages : [ 'opub-ui' ] ,
1313} ) ;
1414
15- export default withSentryConfig ( nextConfig , {
16- // For all available options, see:
17- // https://github.com/getsentry/sentry-webpack-plugin#options
15+ export default withSentryConfig (
16+ nextConfig ,
17+ {
18+ // For all available options, see:
19+ // https://github.com/getsentry/sentry-webpack-plugin#options
1820
19- org : process . env . SENTRY_ORG_NAME ,
20- project : process . env . SENTRY_PROJECT_NAME ,
21+ org : process . env . SENTRY_ORG_NAME ,
22+ project : process . env . SENTRY_PROJECT_NAME ,
2123
22- // Only print logs for uploading source maps in CI
23- silent : ! process . env . CI ,
24+ // Only print logs for uploading source maps in CI
25+ silent : ! process . env . CI ,
2426
25- // For all available options, see:
26- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
27+ // For all available options, see:
28+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
2729
28- // Upload a larger set of source maps for prettier stack traces (increases build time)
29- widenClientFileUpload : true ,
30+ // Upload a larger set of source maps for prettier stack traces (increases build time)
31+ widenClientFileUpload : true ,
3032
31- // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
32- // This can increase your server load as well as your hosting bill.
33- // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
34- // side errors will fail.
35- // tunnelRoute: "/ monitoring" ,
33+ // Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
34+ // This can increase your server load as well as your hosting bill.
35+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
36+ // side errors will fail.
37+ tunnelRoute : '/api/sentry- monitoring' ,
3638
37- // Hides source maps from generated client bundles
38- hideSourceMaps : true ,
39+ // Hides source maps from generated client bundles
40+ hideSourceMaps : true ,
3941
40- // Automatically tree-shake Sentry logger statements to reduce bundle size
41- disableLogger : true ,
42+ // Automatically tree-shake Sentry logger statements to reduce bundle size
43+ disableLogger : true ,
4244
43- // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
44- // See the following for more information:
45- // https://docs.sentry.io/product/crons/
46- // https://vercel.com/docs/cron-jobs
47- automaticVercelMonitors : true ,
48- } , process . env . SENTRY_FEATURE_ENABLED ) ;
45+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
46+ // See the following for more information:
47+ // https://docs.sentry.io/product/crons/
48+ // https://vercel.com/docs/cron-jobs
49+ // automaticVercelMonitors: true,
50+ } ,
51+ process . env . SENTRY_FEATURE_ENABLED
52+ ) ;
0 commit comments