From cadb2a30a2433533a5a99d8ada7b99325babee21 Mon Sep 17 00:00:00 2001 From: Gustavo Mauricio Date: Sun, 18 Sep 2022 08:19:35 +0100 Subject: [PATCH] sentry hide source maps --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 7d7b30cc..3438a669 100644 --- a/next.config.js +++ b/next.config.js @@ -9,6 +9,10 @@ const { withSentryConfig } = require("@sentry/nextjs"); const nextConfig = { reactStrictMode: true, swcMinify: true, + sentry: { + // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map + hideSourceMaps: true, + }, }; const sentryWebpackPluginOptions = {