Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid printing period after localhost URL #7499

Merged
merged 2 commits into from May 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/docusaurus/src/commands/serve.ts
Expand Up @@ -76,8 +76,8 @@ export async function serve(
});
});

logger.success`Serving path=${buildDir} directory at url=${
logger.success`Serving path=${buildDir} directory at: url=${
servingUrl + baseUrl
}.`;
}`;
server.listen(port);
}
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