Skip to content

fix(dev): auto fallback to port if socket listening failed #3165

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

Merged
merged 6 commits into from
Mar 6, 2025

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Mar 6, 2025

For hardly reproducing issues (found from nuxt CIs), listening to the socket can fail. This PR adds a auto fallback to dev worker listener to use port if first socket try failed.

Also refactoring general order in logic for dev worker entry

Copy link

cloudflare-workers-and-pages bot commented Mar 6, 2025

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8f0521c
Status: ✅  Deploy successful!
Preview URL: https://559ec19f.nitrojs.pages.dev
Branch Preview URL: https://fix-dev-linux-socket.nitrojs.pages.dev

View logs

@pi0 pi0 merged commit e20071e into v2 Mar 6, 2025
5 checks passed
@pi0 pi0 deleted the fix/dev-linux-socket branch March 6, 2025 15:25
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