Node.js - Easy way to change port

So I run Node.js using Laragon and set NGINX in the front of server request so that the website is reachable from http://localhost/ instead of http://localhost:3000/. My question is, is there easy way to configure Development target to port 3000 and Production target to port 80?

Is there anything else I need to amend other than port: process.env.PORT || 80 in config.js ?

Community Page
Last updated: