From 5da5bb4590eff637866d3656235e037fa7f8e766 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 10 Oct 2022 11:50:06 +0200 Subject: [PATCH] feat(nextjs): Remove option to auto-wrap data fetchers and API routes --- scripts/NextJs/configs/next.config.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/NextJs/configs/next.config.js b/scripts/NextJs/configs/next.config.js index 2aed3749..06ef151f 100644 --- a/scripts/NextJs/configs/next.config.js +++ b/scripts/NextJs/configs/next.config.js @@ -16,11 +16,6 @@ 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, }, };