yeoman / generator

Rails-inspired generator system that provides scaffolding for your apps
http://yeoman.io
BSD 2-Clause "Simplified" License
1.21k stars 299 forks source link

Introduce a flag to use config in proxymode #1395

Closed Tcharl closed 1 year ago

Tcharl commented 1 year ago

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

github-actions[bot] commented 1 year ago

This issue is stale because it has been open with no activity. Remove stale label or comment or this will be closed