Skip to content
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

Automate port number selection #52

Merged
merged 14 commits into from
Aug 14, 2022
Merged

Automate port number selection #52

merged 14 commits into from
Aug 14, 2022

Conversation

domjtalbot
Copy link
Owner

@domjtalbot domjtalbot commented Aug 14, 2022

Add settings to the dev, start & serve executors for auto selection of the port number.

Port options

Name Type Required Default Description
port object - - Port selection settings
port.auto boolean - true Use the first available port
port.number number - 4200 Define the preferred port to use when auto is set to false
port.range object - - The range of ports to select from.
port.range.from boolean - - The first port of the range. Must be in the range 1024...65535
port.range.to boolean - - The last port of the range. Must be in the range 1024...65535 and must be greater than from.
port.fallback auto, none - auto The fallback strategy to use when the preferred port is unavailable.
port.host string - 0.0.0.0 The host to listern on (only used for port number lookup).

@changeset-bot
Copy link

changeset-bot bot commented Aug 14, 2022

🦋 Changeset detected

Latest commit: bb4ecc7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nx-plugin-graphql-mesh Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@domjtalbot domjtalbot self-assigned this Aug 14, 2022
@domjtalbot domjtalbot added the feature Indicates new functionality label Aug 14, 2022
@domjtalbot domjtalbot added this to the v1.0.0 milestone Aug 14, 2022
@domjtalbot domjtalbot linked an issue Aug 14, 2022 that may be closed by this pull request
@github-actions github-actions bot temporarily deployed to nextjs/trippin-swc Preview August 14, 2022 17:52 Inactive
@github-actions github-actions bot temporarily deployed to nextjs/trippin Preview August 14, 2022 17:52 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot added the vercel An issue or pull request related to Vercel label Aug 14, 2022
@domjtalbot domjtalbot merged commit 5e436b8 into main Aug 14, 2022
@domjtalbot domjtalbot deleted the feature/automated-port branch August 14, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new functionality vercel An issue or pull request related to Vercel
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use first available port
1 participant