From 49455d9f190950256835e9d9ba6beeb3a7b1e570 Mon Sep 17 00:00:00 2001 From: zdm Date: Sat, 7 Dec 2024 00:29:30 +0200 Subject: [PATCH] chore: fix docs server address --- lib/commands/docs/start.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/commands/docs/start.js b/lib/commands/docs/start.js index df965aeb..380d71d3 100644 --- a/lib/commands/docs/start.js +++ b/lib/commands/docs/start.js @@ -42,11 +42,14 @@ export default class extends Command { const server = new Server().directory( "/", location ); - const res = await server.start( { "port": process.cli.options.port || 0 } ); + const res = await server.start( { + "address": "localhost", + "port": process.cli.options.port || 0, + } ); if ( !res.ok ) return res; - const url = `http://localhost:${ res.data.port }`; + const url = `http://localhost:${ res.data.port }/`; console.log( ` Serving: ${ location }