framework icon indicating copy to clipboard operation
framework copied to clipboard

When the hostname can not be inferred, suggest the --hostname option

Open Fil opened this issue 1 year ago • 2 comments
trafficstars

ref. https://github.com/observablehq/framework/discussions/1535

I'm not sure how we arrive at this point, but we should definitely not print out http://undefined:3000 and instead print out a message suggesting to use an explicit --host.

Fil avatar Jul 25 '24 06:07 Fil

I can’t see how this is possible given that the --host argument has a default of "127.0.0.1".

mbostock avatar Jul 25 '24 13:07 mbostock

(Also, the argument is --host; hostname is the name of the internal option but that’s not part of the public API.)

mbostock avatar Jul 25 '24 13:07 mbostock