Wrangler@3 -- wrangler dev uses random port all the time
Hello everyone,
before upgrading to wrangler@3 (and now using the fully local development mode) the port was normally on
8787
. Now each start of the environment seems to have a random port (at the time of trying its 64278
). As the Port is not always the same and a new restart creates a new port, it is a pain to update the development frontend env or my api testing client (insomnia) to always be at the correct port.
Is this a bug on macOS or is there a way to force the port to be at 8787 ?
Thanks in advance,
David3 Replies
IIRC, that happens if the old port isn’t available. Maybe some process is still stuck, hogging port 8787?
let me check 1 min
thanks for the super fast reply tho, really appreciate it
you were right:
let me kill the process and see if the port is back to 8787
yep. 8787 is back. sometimes vscode is a pain as some terminal states are kept, eventhough I exited vscode completely. thanks for the info and fast resolving of my problem. Cheers
Happy to help!