Wrap what you already run
Install @coralogix/staghorn and put staghorn -- in front of your dev script. It runs your command unchanged, learns the real port from its output, registers the route and prints the hostname. No config file, no code change, no --port plumbing.