sentry-module
sentry-module copied to clipboard
Disabling Sentry with runtime config
Is it possible to disable sentry using the runtime config instead of the build time?
No, not right now at least.
Is this in the roadmap or being considered adding to the roadmap?
There are limitations on what can be done given how Nuxt modules work.
While we would likely be able to toggle the "initialize" option based on runtime config, we are not able to decide at runtime whether to include the Sentry plugin in the bundle or not. This can be only decided at build time.
What are your expectations exactly here? That the functionality is disabled/enabled based on runtime config or that none of the code is included when disabled?
The functionality disabled alone is what I am looking for. Don't mind the code inclusion.