Comments (6)
Got it. Now my config looks like this. Thanks!
export default defineConfig(({ mode }) => {
return {
build: {
sourcemap: true,
},
plugins: [
remix(),
tsconfigPaths(),
sentryVitePlugin({
org: 'org',
project: 'project',
authToken: process.env.SENTRY_AUTH_TOKEN,
sourcemaps: {
filesToDeleteAfterUpload: ['./build/**/*.js.map'],
},
telemetry: mode === 'production',
// debug: mode === 'production', // to check if filesToDeleteAfterUpload works as expected
silent: mode !== 'production',
errorHandler: (err) => {
console.warn(err)
},
}),
],
}
})
from sentry-javascript-bundler-plugins.
Closing this since I think you solved the problem. Feel free to ping me in case you have any other questions!
from sentry-javascript-bundler-plugins.
There is a silent
option which you might be looking for.
from sentry-javascript-bundler-plugins.
There is a
silent
option which you might be looking for.
Thanks! It says suppress all logs, which sounds a bit too aggressive. Does that still prints important logs such as errors? If so that's what I was looking for!
from sentry-javascript-bundler-plugins.
So if something throws, it should still be shown as part of the Node.js stack trace, but it will silence all logs, including error log messages.
You could use the errorHandler
option to still log in case something errors out.
from sentry-javascript-bundler-plugins.
We do not intend to add some sort of log level option as of now I should add.
from sentry-javascript-bundler-plugins.
Related Issues (20)
- sentry does not consider sourcemaps HOT 5
- esbuild plugin causing error in Nx Angular CLI (angular 17) HOT 1
- `filesToDeleteAfterUpload` is deleting files before upload in latest versions HOT 4
- can not disable soucemap HOT 3
- sentry/webpack-plugin upload sourcemap oom HOT 5
- Sentry sourcemap use `@vitejs/plugin-legacy` and `@sentry/vite-plugin` conflict. HOT 16
- JavaScript heap out of memory, after adding Sentry to my Vite-React Project - GitLab HOT 3
- Invalid org token in Vite build HOT 2
- vite-plugin Docs should provide guidance and exmaples for removing source maps after upload HOT 1
- Sentry Webpack Plugin `Warning: Didn't find any matching sources for debug ID upload.` HOT 18
- sentry-file-deletion-plugin writeBundle hook Error in v2.21.0 HOT 11
- sentry webpack plugin Fatal process out of memory: Zone HOT 5
- Is there a plan to support the Sentry Rspack plugin in the future? HOT 3
- Sentry source maps completely incorrect and showing sentry debug stuff? HOT 10
- Update `@sentry/node` to v8
- Cannot use import statement outside a module issue, when upgrading from 2.16.1 to 2.17.0 HOT 1
- Vite production build failed due to SENTRY_RELEASE containing double quotes HOT 3
- API request failed: Invalid org token (http status 401) HOT 4
- Disable in vite plugin doesnt stop requesting through retry count HOT 2
- How to prevent @sentry/vite-plugin from injecting Sentry to every file? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-javascript-bundler-plugins.