title: API Urls config in React
body: <p>I am developing a product for my company. This product will not be SAAS and will be deployed at each client's server. </p>
  
  <p>Provided that, I googled how to store api uris in <strong>React</strong>, but I just found about the using of <strong>enviroment variables</strong> provided by CRA (AKA .env file). </p>
  
  <p>This does not fulfill my company requirements, that is just "<strong>build once, deploy anywhere</strong>", with a config key-value file (for instance something like 'APIURI': '<a href="http://foo.bar" rel="nofollow noreferrer">http://foo.bar</a>') read at runtime instead of building the app each time I must deploy it, changing these enviroment variables.</p>
  
  <p>I tried to read an external JSON file, but CRA blocks any import outside the src folder.
  I also tried this approach: <a href="https://stackoverflow.com/a/52184642/12570096">https://stackoverflow.com/a/52184642/12570096</a> but in the end, it injectes the values too, so whenever I change the config file, it does not updates, so... 
  I wonder if anyone knows any approach to achieve this scenario.</p>
  
  <p>Thanks all!</p>