Skip to content

Commit

Permalink
fix: adding formatting to start.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed May 26, 2022
1 parent 1d61aba commit 0b18025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus/src/commands/start.ts
Expand Up @@ -67,15 +67,15 @@ export async function start(
const urls = prepareUrls(protocol, host, port);
const openUrl = normalizeUrl([urls.localUrlForBrowser, baseUrl]);

logger.success`Docusaurus website is running at url=${openUrl}.`;
logger.success`Docusaurus website is running at: url=${openUrl}`;

// Reload files processing.
const reload = _.debounce(() => {
loadSite()
.then(({baseUrl: newBaseUrl}) => {
const newOpenUrl = normalizeUrl([urls.localUrlForBrowser, newBaseUrl]);
if (newOpenUrl !== openUrl) {
logger.success`Docusaurus website is running at url=${newOpenUrl}.`;
logger.success`Docusaurus website is running at: url=${newOpenUrl}`;
}
})
.catch((err: Error) => {
Expand Down

0 comments on commit 0b18025

Please sign in to comment.