Skip to content

Commit

Permalink
chore: fix docs server address
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Dec 6, 2024
1 parent 8960940 commit 49455d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/commands/docs/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 49455d9

Please sign in to comment.