-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
productionBrowserSourceMaps: false
is not working - a way to disable the sourcemaps
#6031
Comments
Hi, sentry generates source maps so it can resolve the stack trace of the minified code in the Sentry issue interface. The Next.js SDK will upload the source maps automatically - this can be disabled via options.
I recommend you delete the source maps with a simple script after the normal |
@lforst thanks for quick reply, this is too bad because we have limitations to decide to expose source maps or not, also after adding
So weird that no one even looked/reviewed this file https://github.com/vercel/next.js/blob/canary/examples/with-sentry/next.config.js, because I'm using latest versions and I see this warning. |
What is the exact warning you're seeing and what Next.js version are you using? |
Related: |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
for me, the issue was happening because of using removed the package and got it working like this
|
Related issue focused on the Webpack plugin scenario with a few workarounds mentioned: getsentry/sentry-webpack-plugin#174. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
"@sentry/nextjs": "^7.16.0",
Framework Version
18
Link to Sentry event
No response
Steps to Reproduce
next.config.js
Expected Result
I'm looking for a way to disable sourcemaps in production, next js has an option to flag the source maps but it I don't know why sentry forces to enable and upload my source code, I just want a way to disable source map for security concerns. this shouldn't be too hard achieve since it's related to security and exposing source code to public. it's hours I'm looking for this to solve it.
Also something about
hideSourceMaps
option, I don't know what this supposed to do but I tried this feature as well and it still load my***.js.map
files in network tab and you can easily open any files you like in console tab.Actual Result
.
The text was updated successfully, but these errors were encountered: