Skip to content

Commit

Permalink
Remove console.log and update warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiu Fong Lam committed Feb 8, 2024
1 parent d2a1d04 commit 401bc37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/cmd/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ function serve(userSpecifiedRoot, options) {
.then(async (config) => {
if (serverConfig.host === '0.0.0.0') {
const response = await questionAsync(
'Using the address \'0.0.0.0\' may pose vulnerabilities and is generally discouraged.'
'WARNING: Using the address \'0.0.0.0\' may pose vulnerabilities and is generally discouraged.'
+ 'Proceed with caution? [y/N] ');
if (response.toLowerCase() === 'y') {
console.log('Proceeding...');
logger.info('Proceeding to generate website');
} else {
console.log('Operation is cancelled.');
logger.info('Website generation is cancelled.');
process.exit();
}
}
Expand Down

0 comments on commit 401bc37

Please sign in to comment.