2

The problem is that I want to change the baseUrl according to the environment variable. Currently I have webpack.dev.js and webpack.prod.js How can I solve this?

Example :

dev :
I want to call api url by http://abc:9090

prd :
I want to call api url by http://gef:1234
westzoo
  • 23
  • 4
  • 2
    Answered here https://stackoverflow.com/questions/35469836/detecting-production-vs-development-react-at-runtime#35470995 – Hyetigran Jul 15 '20 at 02:18

0 Answers0