Custom UI resolver callback context missing environmentType

Hi,

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.
https://developer.atlassian.com/platform/forge/runtime-reference/custom-ui-resolver/#function-signature

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:
https://developer.atlassian.com/platform/forge/app-context-security/#custom-ui

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?

Regards,
Daniel

1 Like