New version of get-port expects an integer as an argument and returns an integer instead of a string. So when opts.port is set as an env var the value, it does not get converted to an integer and get-port gives you a different random port.
The way to correct this would be to convert the process.env PORT value to integer before sending it to get-port
When setting env var PORT="8080"
New version of get-port expects an integer as an argument and returns an integer instead of a string. So when opts.port is set as an env var the value, it does not get converted to an integer and get-port gives you a different random port.
The way to correct this would be to convert the process.env PORT value to integer before sending it to get-port