Skip to content

Commit 25ba9f9

Browse files
Luca Forstnershanamatthews
andauthored
Add auth token to manual Next.js setup snippet (#7254)
Co-authored-by: Shana Matthews <[email protected]>
1 parent 1aa5f29 commit 25ba9f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/platforms/javascript/guides/nextjs/manual-setup.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,16 @@ const sentryWebpackPluginOptions = {
135135
// Additional config options for the Sentry Webpack plugin. Keep in mind that
136136
// the following options are set automatically, and overriding them is not
137137
// recommended:
138-
// release, url, authToken, configFile, stripPrefix,
139-
// urlPrefix, include, ignore
138+
// release, url, configFile, stripPrefix, urlPrefix, include, ignore
140139

141140
org: "___ORG_SLUG___",
142141
project: "___PROJECT_SLUG___",
143142

143+
// An auth token is required for uploading source maps.
144+
// You can get an auth token from https://sentry.io/settings/account/api/auth-tokens/
145+
// The token must have `project:releases` and `org:read` scopes for uploading source maps
146+
authToken: process.env.SENTRY_AUTH_TOKEN,
147+
144148
silent: true, // Suppresses all logs
145149

146150
// For all available options, see:

0 commit comments

Comments
 (0)