From 7f6ac87b1627ad0ad9e5a62c3af1eda6e31272e9 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 22 Jan 2025 13:38:24 +0100 Subject: [PATCH] fix(nextjs): Mention correct local auth token file during source map generation (#764) Remove a leftover check in the source maps wizard which is also used in the NextJS wizard that would mention .sentryclirc instead of .env.sentry-build-plugins. --------- Co-authored-by: Andrei Borza --- CHANGELOG.md | 1 + src/sourcemaps/sourcemaps-wizard.ts | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac61db87..c113ed22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Always send platform query param to auth page ([#757](https://github.com/getsentry/sentry-wizard/pull/757)) +- fix(nextjs): Mention correct local auth token file during source map generation ([#764](https://github.com/getsentry/sentry-wizard/pull/764)) ## 3.38.0 diff --git a/src/sourcemaps/sourcemaps-wizard.ts b/src/sourcemaps/sourcemaps-wizard.ts index a1ca2047..f4c17e4b 100644 --- a/src/sourcemaps/sourcemaps-wizard.ts +++ b/src/sourcemaps/sourcemaps-wizard.ts @@ -267,13 +267,9 @@ export async function configureCI( 'create-react-app', ].includes(selectedTool); - // some non-cli-based flows also use the .sentryclirc file - const usesSentryCliRc = selectedTool === 'nextjs'; - - const authTokenFile = - isCliBasedFlowTool || usesSentryCliRc - ? SENTRY_CLI_RC_FILE - : SENTRY_DOT_ENV_FILE; + const authTokenFile = isCliBasedFlowTool + ? SENTRY_CLI_RC_FILE + : SENTRY_DOT_ENV_FILE; if (!isUsingCI) { clack.log.info(