mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 08:57: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
|
// start local server on specified port
|
||||||
const server = require('./server/server.js');
|
const server = require('./server/server.js');
|
||||||
server(port, program.opts());
|
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);
|
console.log('Docusaurus server started on port %d', port);
|
||||||
openBrowser(host);
|
openBrowser(host);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue