mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 08:27:03 +02:00
Open browser with correct baseurl (#819)
* open browser with correct baseurl * nits
This commit is contained in:
parent
60852a2b2e
commit
e619884921
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue