showing results for - "react open on different url instead of localhost"
Alyssia
10 Mar 2016
1As well as changing your /etc/hosts as advised above, if you want CRA to know about the new host name, the HOST env var should give you what you want.
2
3E.g. (this can go into your package.json under scripts/start)
4
5HOST=somedomain.com react-scripts start
6That should start your CRA-based dev server, listening at that domain name, and it should open/refresh a browser tab pointing there.
7
8Edit: docs on this and other env vars that CRA uses.