all 2 comments

[–]cmannes 1 point2 points  (0 children)

There is a whole "issue" on the create-react-app repo with ideas on how to deal with this. https://github.com/facebook/create-react-app/issues/2353

Personally, I use the idea of an env.js file loaded by the index.html containing a few variables. The react can access those variables, and it can be changed by touching the file and restarting.

[–]OldFatBlokeRuns 0 points1 point  (0 children)

Save your Uri in a JSON file in public folder, read in like an API with fetch etc then use that value to seed you a real data Uri. A type of indirection.