From 7a31e158ea2589701b1264e3bdc9c47b0d1cb510 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 13 Nov 2023 03:41:29 +0000 Subject: [PATCH] re-enable sentry --- next.config.js | 57 ++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/next.config.js b/next.config.js index 3fc3ca3..e5def96 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,5 @@ const nextBuildId = require("next-build-id"); +const { withSentryConfig } = require("@sentry/nextjs"); const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: false, }); @@ -80,39 +81,35 @@ const nextConfig = { module.exports = withBundleAnalyzer(nextConfig); -// // Injected content via Sentry wizard below +module.exports = withSentryConfig( + module.exports, + { + // For all available options, see: + // https://github.com/getsentry/sentry-webpack-plugin#options -// const { withSentryConfig } = require("@sentry/nextjs"); + // Suppresses source map uploading logs during build + silent: true, + org: "sentry", + project: "scoresaber-reloaded", + url: "https://sentry.fascinated.cc/", + }, + { + // For all available options, see: + // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ -// module.exports = withSentryConfig( -// module.exports, -// { -// // For all available options, see: -// // https://github.com/getsentry/sentry-webpack-plugin#options + // Upload a larger set of source maps for prettier stack traces (increases build time) + widenClientFileUpload: false, -// // Suppresses source map uploading logs during build -// silent: true, -// org: "sentry", -// project: "scoresaber-reloaded", -// url: "https://sentry.fascinated.cc/", -// }, -// { -// // For all available options, see: -// // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ + // Transpiles SDK to be compatible with IE11 (increases bundle size) + transpileClientSDK: false, -// // Upload a larger set of source maps for prettier stack traces (increases build time) -// widenClientFileUpload: false, + // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load) + tunnelRoute: "/monitoring", -// // Transpiles SDK to be compatible with IE11 (increases bundle size) -// transpileClientSDK: false, + // Hides source maps from generated client bundles + hideSourceMaps: true, -// // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load) -// tunnelRoute: "/monitoring", - -// // Hides source maps from generated client bundles -// hideSourceMaps: true, - -// // Automatically tree-shake Sentry logger statements to reduce bundle size -// disableLogger: true, -// }, -// ); + // Automatically tree-shake Sentry logger statements to reduce bundle size + disableLogger: true, + }, +);