From 125fa22f52c2a343dc87abb10a3e7b5f630f7532 Mon Sep 17 00:00:00 2001 From: Erwann Mest Date: Fri, 29 Oct 2021 17:10:27 +0200 Subject: [PATCH] feat(port): change it from 5000 to 3000 --- bin/serve.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/serve.js b/bin/serve.js index ee65bf60..808173c1 100755 --- a/bin/serve.js +++ b/bin/serve.js @@ -63,7 +63,7 @@ const getHelp = () => chalk` {bold $} {cyan serve} folder_name {bold $} {cyan serve} [-l {underline listen_uri} [-l ...]] [{underline directory}] - By default, {cyan serve} will listen on {bold 0.0.0.0:5000} and serve the + By default, {cyan serve} will listen on {bold 0.0.0.0:3000} and serve the current working directory on that address. Specifying a single {bold --listen} argument will overwrite the default, not supplement it. @@ -152,7 +152,7 @@ const parseEndpoint = (str) => { return [url.pathname]; case 'tcp:': - url.port = url.port || '5000'; + url.port = url.port || '3000'; return [parseInt(url.port, 10), url.hostname]; default: throw new Error(`Unknown --listen endpoint scheme (protocol): ${url.protocol}`); @@ -419,7 +419,7 @@ const loadConfig = async (cwd, entry, args) => { if (!args['--listen']) { // Default endpoint - args['--listen'] = [[process.env.PORT || 5000]]; + args['--listen'] = [[process.env.PORT || 3000]]; } if (args._.length > 1) {