How do I detect if the current workspace is the development workspace? I our case, the development workspace has different IDās depending on the developerā¦
Thank you for your answer.
In my search for the environment variable āTOKENā that the documentation is mentioning for the API class, I came across an environment variable called āENVIRONMENTā where the value is ādevelopmentā in development and āproductionā in production. Is there a reason why you did not recommend that one?
So the solution can be: os.getenv("ENVIRONMENT") == "development"
Hi @twj,
I wasnāt fully aware of this env variable, that should work fine. Although Iād say be cautious with it, as env variables could potentially be overwritten.
FYI, the ātokenā variable is there, as it should be set to your Personal access token. This is required to authenticate your api calls.
1 Like