Skip to content
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

Disabling Sentry with runtime config #331

Open
shivam-deepsource opened this issue Aug 6, 2021 · 4 comments
Open

Disabling Sentry with runtime config #331

shivam-deepsource opened this issue Aug 6, 2021 · 4 comments
Labels

Comments

@shivam-deepsource
Copy link

Is it possible to disable sentry using the runtime config instead of the build time?

@rchl
Copy link
Member

rchl commented Aug 19, 2021

No, not right now at least.

@shivam-deepsource
Copy link
Author

Is this in the roadmap or being considered adding to the roadmap?

@rchl
Copy link
Member

rchl commented Aug 30, 2021

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?

@shivam-deepsource
Copy link
Author

shivam-deepsource commented Sep 7, 2021

The functionality disabled alone is what I am looking for. Don't mind the code inclusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants