Custom UI resolver callback context missing environmentType


I was testing to find which environment my app is currently deployed in (development, staging, production).

According to this documentation, the callback context of a resolver function should have this information.

But in my tests, the context didn’t contain this information:

Is the documentation wrong here, or am I missing something?

But, even if, regarding to this, any information contained in that field should be treated as insecure:

So, is there a recommended way to have app functionality that is ONLY available for the development branch, or should this be avoided in general?


1 Like