-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
esbuild.serve
does not emit any URLs / ports, even with logLevel: 'info'
#2393
Comments
The CLI just calls the public API like you are doing, and then pretty-prints the returned address and port: Lines 1320 to 1355 in f730c03
You are welcome to print it yourself if you'd like, using whatever formatting you want. The host and port are returned from Lines 238 to 244 in f730c03
This is documented here: https://esbuild.github.io/api/#serve-return-values |
Thank you for the solution, but that feels like I’m rewriting core functionality and it’s not super straightforward either https://thewebdev.info/2022/02/26/how-to-get-local-ip-address-in-node-js/ |
The ClI works
The API doesn't output anything:
Any config to make it work? Or is this functionality missing?
The text was updated successfully, but these errors were encountered: