Users are kinda disappointed when they use a dedicated variable to use config in proxyMode and another for other case.
Two different variables to manipulate the same instance (pointer) is quite confusing from a developper experience point of view.
i.e.
const jhipsterProxy = this.config.proxy();
this.config.defaults({ serviceDiscovery: 'consul' });
jhipsterProxy.serviceDiscovery = 'eureka' // leads to this.config now equals to 'eureka'
Would be nice to get a proxy flag instead, to activate this feature by default, or even to totally deactivate proxy mode
Users are kinda disappointed when they use a dedicated variable to use config in proxyMode and another for other case. Two different variables to manipulate the same instance (pointer) is quite confusing from a developper experience point of view.
i.e.
Would be nice to get a proxy flag instead, to activate this feature by default, or even to totally deactivate proxy mode