My question isn't how to change which port create-react-app runs on.
My question is where does create-react-app specify port 3000.
I don't want to change it I just want to understand how it sets it.
I've searched for 3000 but it just comes up in a bunch of comments not the actual setting.
Is it in compiled code some where? Do I need to unpack it?
The default port is set in the start script of react-scripts
here:
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;