The first argument in favor of adding settings via environment variables is to move away from the anti-pattern of using url in the code. A fairly dynamic change to origin, it is logical to leave the rest of the settings static.
Second argument for the convenience of separating environments
development:CORS=*production:CORS=url1,url2 (separated by commas)
@icebob It is necessary to define the namespace for the moleculer-web by analogy with MOL__ for the moleculer
I propose to discuss adding such a possibility.
The first argument in favor of adding settings via environment variables is to move away from the anti-pattern of using url in the code. A fairly dynamic change to origin, it is logical to leave the rest of the settings static.
Second argument for the convenience of separating environments development:
CORS=*
production:CORS=url1,url2
(separated by commas)@icebob It is necessary to define the namespace for the moleculer-web by analogy with MOL__ for the moleculer