Repository navigation
Closed
getsentry/sentry-javascript-bundler-plugins
#753Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
9.34.0
Framework Version
15.3.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
next.config.js file:
export default withSentryConfig(nextConfig, {
org: "...",
project: "...",
authToken:"...",
debug: true,
silent: false,
release:{
create: false,
},
sourcemaps: {
disable: true,
},
});
Steps to Reproduce
- Configure the SDK as above
- Build the app
Expected Result
The SDK does not attempt to upload source maps in any form: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/build/#sourcemaps.disable
Actual Result
It still tries to upload source maps.
Log:
npm run build
> 15nexttest@0.1.0 build
> next build
▲ Next.js 15.3.2
- Experiments (use with caution):
· clientTraceMetadata
Creating an optimized production build ...
[@sentry/nextjs - Node.js] Info: Using environment variables configured in ".env.sentry-build-plugin".
[@sentry/nextjs - Node.js] Debug: Release injection disabled via `release.inject` option. Will not inject release.
[@sentry/nextjs - Node.js] Debug: The component name annotate plugin is currently disabled. Skipping component name annotations.
[@sentry/nextjs - Node.js] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - Node.js] Debug: Source map upload was disabled. Will not upload sourcemaps using debug ID process.
[@sentry/nextjs - Node.js] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: ...
[same for other files]
> Adding source map references
> Nothing to upload
[@sentry/nextjs - Node.js] Info: Successfully uploaded source maps to Sentry
[@sentry/nextjs - Edge] Info: Using environment variables configured in ".env.sentry-build-plugin".
[@sentry/nextjs - Edge] Debug: Release injection disabled via `release.inject` option. Will not inject release.
[@sentry/nextjs - Edge] Debug: The component name annotate plugin is currently disabled. Skipping component name annotations.
[@sentry/nextjs - Edge] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - Edge] Debug: Source map upload was disabled. Will not upload sourcemaps using debug ID process.
[@sentry/nextjs - Edge] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: ...
[same for other files]
> Found 0 files
> Adding source map references
> Nothing to upload
[@sentry/nextjs - Edge] Info: Successfully uploaded source maps to Sentry
[@sentry/nextjs - Client] Info: Using environment variables configured in ".env.sentry-build-plugin".
[@sentry/nextjs - Client] Debug: Release injection disabled via `release.inject` option. Will not inject release.
[@sentry/nextjs - Client] Debug: The component name annotate plugin is currently disabled. Skipping component name annotations.
[@sentry/nextjs - Client] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - Client] Debug: Source map upload was disabled. Will not upload sourcemaps using debug ID process.
[@sentry/nextjs - Client] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: ...
[same for other files]
> Found 0 files
> Adding source map references
> Nothing to upload
[@sentry/nextjs - Client] Info: Successfully uploaded source maps to Sentry
✓ Compiled successfully in 15.0s
Reacted by Pavlo Zhukov, Oleksandr (Aleks) and Ihor Kroosh
Reacted by Charly Gomez
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
proxet-p35 commentedon Jul 7, 2025
Also, I noticed if we don't provide
SENTRY_AUTH_TOKENenv variable, because we actually don't wont to interact with Sentry during our CI action where we runnext build, we still have warnings about the missing env variables even if they are not necessary for current configuration.Is it also possible not to check for
authTokenoption presence if we are not going to interact with Sentry during thenext buildwhen we have the following config?P.S.: we do not populate
SENTRY_AUTH_TOKENin that CI action run to not expose it when it is not necessary.chargome commentedon Jul 7, 2025
Thanks for writing in!
Ok to sum this up:
sourcemaps.disable: true, no sourcemaps will be generated, uploaded or deletedThat being said I agree that the logs appear to noisy when sourcemaps are disabled (both for upload references and for the auth token) – I'll try to improve this!