Local dev - virtualhost with port in Windows

0 votes
added Mar 7 in Server issues by lcjr First Warrant Officer (11,970 points)

If you want to access your React project using the domain myreact.site.com locally, you may need to add an entry to your hosts file to map it to

1. Edit the hosts file located at C:\Windows\System32\drivers\etc\hosts (on Windows) with administrative privileges, and add the following line: myreact.site.com

2. Save the hosts file.

3. Once you've made these changes, you should be able to access your React project locally using the domain myreact.site.com:3535

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.