Skip to content

Commit

Permalink
fix(nextjs): Mention correct local auth token file during source map …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
Lms24 and andreiborza authored Jan 22, 2025
1 parent 3038237 commit 7f6ac87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions src/sourcemaps/sourcemaps-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7f6ac87

Please sign in to comment.