In my config.json, I have a requirement for a setting object to be populated dynamically based on the environment variable setting.
"somesetting": {
"setting1": "%S1%",
"setting2": "%S2%"
}
My environment is Windows.
Many examples which I have come across have hard coded values and I am unable to understand how to handle my scenario. I am very new to npm and the javascript world. Any advice / references in this matter is really appreciated
Edit 2:
Possibly,I missed it, but my situation is that values of the %S1% and %S2% could be different in different environments. Consider S1 and S2 as some paths which are likely to be different based on which machine my code builds on the cloud e.g. C:\xyz
or D:\xyz
etc, which I would have no way of knowing upfront. So this means I can't have a static setting in it even if my environments are different.
Thanks