-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix port conflicts #24
Conversation
truemiller
commented
Feb 27, 2024
- checks if default port is available, otherwise, updates port with an available port for each child process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
const frontendPortAvailable = await isPortAvailable( | ||
appConfig.ports.prod.next, | ||
); | ||
if (!frontendPortAvailable) { | ||
appConfig.ports.prod.next = await findAvailablePort({ | ||
...PORT_RANGE, | ||
excludePorts: [appConfig.ports.prod.operate], | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to create a common function as they seem to be repeated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will resolve later today