I have a react / redux app that have a lot of ajax calls to an endpoint.
The endpoint url is written to a config.json file;
{endpoint: 'apiEndpoint.url'}
How should I get this URL from that file and where should I store it?
I have a lot of actions that uses fetch to get the data.
the endpoint url is written to the config file during release, so I can't access it before. It has to be on "runtime".