Skip to content

Commit 168d4b2

Browse files
authored
Change default port from 5000 to 3000 (#680)
1 parent 30b0673 commit 168d4b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/serve.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const getHelp = () => chalk`
6363
{bold $} {cyan serve} folder_name
6464
{bold $} {cyan serve} [-l {underline listen_uri} [-l ...]] [{underline directory}]
6565
66-
By default, {cyan serve} will listen on {bold 0.0.0.0:5000} and serve the
66+
By default, {cyan serve} will listen on {bold 0.0.0.0:3000} and serve the
6767
current working directory on that address.
6868
6969
Specifying a single {bold --listen} argument will overwrite the default, not supplement it.
@@ -152,7 +152,7 @@ const parseEndpoint = (str) => {
152152

153153
return [url.pathname];
154154
case 'tcp:':
155-
url.port = url.port || '5000';
155+
url.port = url.port || '3000';
156156
return [parseInt(url.port, 10), url.hostname];
157157
default:
158158
throw new Error(`Unknown --listen endpoint scheme (protocol): ${url.protocol}`);
@@ -419,7 +419,7 @@ const loadConfig = async (cwd, entry, args) => {
419419

420420
if (!args['--listen']) {
421421
// Default endpoint
422-
args['--listen'] = [[process.env.PORT || 5000]];
422+
args['--listen'] = [[process.env.PORT || 3000]];
423423
}
424424

425425
if (args._.length > 1) {

0 commit comments

Comments
 (0)