Skip to content

Conversation

@MathurAditya724
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Dec 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
spotlightjs Ready Ready Preview, Comment Dec 28, 2025 7:39am

logger.info(`Spotlight listening on ${info.port}`);
if (basePath) {
logSpotlightUrl(realPort);
logSpotlightUrl(info.port);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dynamic port logging may show configured port instead of actual

When using port 0 for dynamic assignment (default for spotlight run), the old code explicitly retrieved the actual bound port via server.address() and stored it in a variable named realPort. The new code uses info.port from the callback parameter. If @hono/node-server passes back the configured port (0) rather than the actual bound port from AddressInfo, the log messages "Spotlight listening on 0" and "Open http://localhost:0 to see the Spotlight UI" would be displayed, which are incorrect and unusable. The explicit realPort naming in the original code suggests this distinction was intentional.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked, its working with dynamic port

Copy link
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this works with the dynamic port, look much cleaner nice!

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.

3 participants