I'm developing my application using Express.js but I don't want to use hostname like ' http://localhost:3000 '.
How can I change that to another hostname and remove a port for my local environment only? Such as ' http://example.com ' that point to my express's server.
You can change your hosts file.
For change you can read this article
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.