-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs(sourceMaps): Add filesToDeleteAfterUpload when source maps are enabled
#15609
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Bundle ReportChanges will increase total bundle size by 3.98kB (0.02%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-server-cjsAssets Changed:
view changes for bundle: sentry-docs-client-array-pushAssets Changed:
|
sfanahata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
| sourcemaps: { | ||
| // As you're enabling client source maps, you probably want to delete them after they're uploaded to Sentry. | ||
| // Set the appropriate glob pattern for your output folder - some glob examples below: | ||
| filesToDeleteAfterUpload: ['.*/**/public/**/*.map', './dist/**/client/**/*.map'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general question: Should we show the simple ./**/*.map glob pattern instead of these paths? I don't think the paths here necessarily apply to most apps (especially frontend-only frameworks) and the catchall glob pattern would ensure things work even if users just blindly copy the snippet.
No strong opinion, so not a blocker for me. just a tought.
inventarSarah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DESCRIBE YOUR PR
Follow-up on this PR: #15574
In snippets, where source maps are enabled, the
filesToDeleteAfterUploadoption is added as well. Also, the section about adding this option is added as a warning, not a simple note.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: