When working with resources of type OpenAPI and staging/production environments, you can set different server variables in the "resource" tab.
This is especially useful since you could toggle between server urls.
However the experience I'm getting is that the server variable used is saved with the query hence toggling between production & staging doesn't change the server variables.
My current workaround is that I have to use the retoolContext.environment
variable to set this within each query that uses this openapi resource something like this:
serverUrl = {
staging: 'staging.example.com/api',
production: 'prod.example.com/api'
}[retoolContext.environment]
Our environment is on-premise deployment with image: tryretool/backend:2.84.21