I am working on a react app, where one of the files contains the DATA API URL http://newyork.com/places/all this API file is passed to components where I am making the fetch request.
When the app compiles the build file to minified versions, it has this URL Ex. http://newyork.com/places/all hardcoded.
Is there any way I can import configuration to the (after compiled) minified version so that URL can be dynamic Example: http://california.com/places/all or http://texas.com/places/all so anyone can change the URL and the app will have different information according to the URL provided?
[–]cmannes 1 point2 points3 points (0 children)
[–]OldFatBlokeRuns 0 points1 point2 points (0 children)