Skip to content

Commit

Permalink
Open browser with correct baseurl (#819)
Browse files Browse the repository at this point in the history
* open browser with correct baseurl

* nits
  • Loading branch information
endiliey authored and yangshun committed Jul 1, 2018
1 parent 60852a2 commit e619884
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/start-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function checkPort() {
// start local server on specified port
const server = require('./server/server.js');
server(port, program.opts());
const host = `http://localhost:${port}`;
const {baseUrl} = require(CWD + '/siteConfig.js');
const host = `http://localhost:${port}${baseUrl}`;
console.log('Docusaurus server started on port %d', port);
openBrowser(host);
}
Expand Down

0 comments on commit e619884

Please sign in to comment.