|
1 | 1 | import analyzer from '@next/bundle-analyzer'; |
2 | | -import { withSentryConfig } from '@sentry/nextjs'; |
3 | 2 | import withSerwistInit from '@serwist/next'; |
4 | 3 | import type { NextConfig } from 'next'; |
5 | 4 | import ReactComponentName from 'react-scan/react-component-name/webpack'; |
@@ -326,39 +325,4 @@ const withPWA = |
326 | 325 | }) |
327 | 326 | : noWrapper; |
328 | 327 |
|
329 | | -const hasSentry = !!process.env.NEXT_PUBLIC_SENTRY_DSN; |
330 | | -const withSentry = |
331 | | - isProd && hasSentry |
332 | | - ? (c: NextConfig) => |
333 | | - withSentryConfig(c, { |
334 | | - // Enables automatic instrumentation of Vercel Cron Monitors. |
335 | | - // See the following for more information: |
336 | | - // https://docs.sentry.io/product/crons/ |
337 | | - // https://vercel.com/docs/cron-jobs |
338 | | - automaticVercelMonitors: true, |
339 | | - |
340 | | - // Automatically tree-shake Sentry logger statements to reduce bundle size |
341 | | - disableLogger: true, |
342 | | - |
343 | | - org: process.env.SENTRY_ORG, |
344 | | - |
345 | | - project: process.env.SENTRY_PROJECT, |
346 | | - |
347 | | - // For all available options, see: |
348 | | - // https://github.com/getsentry/sentry-webpack-plugin#options |
349 | | - // Suppresses source map uploading logs during build |
350 | | - silent: true, |
351 | | - |
352 | | - // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load) |
353 | | - // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client- |
354 | | - // side errors will fail. |
355 | | - tunnelRoute: '/monitoring', |
356 | | - |
357 | | - // For all available options, see: |
358 | | - // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ |
359 | | - // Upload a larger set of source maps for prettier stack traces (increases build time) |
360 | | - widenClientFileUpload: true, |
361 | | - }) |
362 | | - : noWrapper; |
363 | | - |
364 | | -export default withBundleAnalyzer(withPWA(withSentry(nextConfig) as NextConfig)); |
| 328 | +export default withBundleAnalyzer(withPWA(nextConfig as NextConfig)); |
0 commit comments