[React on Netlify] How to change the API host path in production

Then you need to use environment variables. https://answers.netlify.com/t/support-guide-using-environment-variables-on-netlify-correctly/