feat(KB-137): add automatic port fallback when dashboard port is in use
- Handle EADDRINUSE by retrying with port 0 (OS-assigned random port) - Print warning message showing original and fallback port - Update banner and browser-open to use the actual bound port - Add tests for successful listen, fallback, and warning behavior - Add changeset for patch release
This commit is contained in:
5
.changeset/auto-port-fallback.md
Normal file
5
.changeset/auto-port-fallback.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@dustinbyrne/kb": patch
|
||||
---
|
||||
|
||||
Auto-assign random port when dashboard port is already in use instead of crashing with EADDRINUSE.
|
||||
Reference in New Issue
Block a user