From a14f7c2eb7aeb080488662f6615421680e865927 Mon Sep 17 00:00:00 2001 From: Alexander Kadyrov Date: Thu, 21 Nov 2024 01:34:26 +0400 Subject: [PATCH] Add Sentry auth token to send sourcemaps --- next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index f090b16..3d432d3 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -34,4 +34,8 @@ export default withSentryConfig(bundleAnalyzer(nextConfig), { // Automatically tree-shake Sentry logger statements to reduce bundle size disableLogger: true, + + // The authentication token to use for all communication with Sentry. + // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#configure-source-maps + authToken: process.env.SENTRY_AUTH_TOKEN, })