Skip to content

fix: preserve port zero when starting Fastify - #937

Open
Toufiqul-27 wants to merge 1 commit into
fastify:mainfrom
Toufiqul-27:fix/preserve-ephemeral-port
Open

Toufiqul-27 wants to merge 1 commit into
fastify:mainfrom
Toufiqul-27:fix/preserve-ephemeral-port

Conversation

@Toufiqul-27

Copy link
Copy Markdown
Contributor

Preserve --port 0 so Node can choose an available port. Previously, the CLI fell back to PORT or 3000.

The regression test verifies that --port 0 takes precedence over PORT and starts a working HTTP server. It fails on the base and passes with the fix.

Validation: 75 startup and argument tests passed, 5 skipped. ESLint passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant