I have a react app running on localhost port 3000 but instead of using localhost:3000 I would like to set a custom domain name to mydomain.com. I did already the change in the windows host file to
127.0.0.1 mydomain.com
but I guess I have to specify in my react app to look into this domain instead of localhost. How can I do this?
I tried : "start": "set HOST=videowall.com && set PORT=3006 && react-scripts start",
but it is returning
Error: getaddrinfo ENOTFOUND videowall.com