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

Support change environment while app is live #174

Open
Ahmadhmaid777 opened this issue Apr 19, 2023 · 1 comment
Open

Support change environment while app is live #174

Ahmadhmaid777 opened this issue Apr 19, 2023 · 1 comment

Comments

@Ahmadhmaid777
Copy link

My app supported change environment while is live my issue is I can't update rollbar config is there any way can I change or update rollbar configuration

@mostasim
Copy link

I figure it out by setting up a new client with a new config, which should work if you want to change the configuration dynamically.
Here is the example

 public setEnvironment = (environment: string) => {
        this.config = new Configuration(this.ROLLBAR_ACCESS_TOKEN, {
            environment: environment
        });

        this.client = new Client(this.config);
    };

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

No branches or pull requests

2 participants