| ... | ... | @@ -11,11 +11,13 @@ const server = serve({ |
| 11 | 11 | if (address === "::" || address === "127.0.0.1") { |
| 12 | 12 | address = os.hostname().replace(/\.local$/, ""); |
| 13 | 13 | } |
| 14 | | console.info(url.format({ |
| 15 | | protocol, |
| 16 | | hostname: address, |
| 17 | | port, |
| 18 | | })); |
| 14 | console.info( |
| 15 | "live at " + url.format({ |
| 16 | protocol, |
| 17 | hostname: address, |
| 18 | port, |
| 19 | }), |
| 20 | ); |
| 19 | 21 | }); |
| 20 | 22 | |
| 21 | 23 | process.on("SIGINT", () => { |
| ... | ... | @@ -42,3 +44,4 @@ import * as os from "os"; |
| 42 | 44 | import * as url from "node:url"; |
| 43 | 45 | import { serve } from "@hono/node-server"; |
| 44 | 46 | import process from "node:process"; |
| 47 | import * as console from "lib/log.ts"; |