diff --git a/scripts/NextJs/configs/next.config.js b/scripts/NextJs/configs/next.config.js index 06ef151f3..2aed37499 100644 --- a/scripts/NextJs/configs/next.config.js +++ b/scripts/NextJs/configs/next.config.js @@ -16,6 +16,11 @@ const moduleExports = { // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map // for more information. hideSourceMaps: true, + + // This option will automatically provide performance monitoring for Next.js + // data-fetching methods and API routes, making the manual wrapping of API + // routes via `withSentry` redundant. + autoInstrumentServerFunctions: true, }, };