Print served URL via Server.url
Alan Pearce alan@alanpearce.eu
Mon, 01 Apr 2024 19:20:12 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M src/index.ts → src/index.ts
@@ -8,7 +8,7 @@ const metricsServed = Bun.serve(metricsServer); console.info(`Metrics server started on port ${metricsServed.port}`); const served = Bun.serve(server); -console.info(`Serving website on http://${served.hostname}:${served.port}/`); +console.info(`Serving website on ${served.url}`); process.on("SIGTERM", function () { log.info("SIGTERM received, shutting down...");