diff --git a/bin/cli/index.js b/bin/cli/index.js index 5370a20..8445521 100755 --- a/bin/cli/index.js +++ b/bin/cli/index.js @@ -30,7 +30,8 @@ const cli = require('meow')( s: 'silent' }, default: { - poll: false + poll: false, + port: 3000 } } ) diff --git a/bin/serve/get-port.js b/bin/serve/get-port.js index bc4ee1f..bbeaa62 100644 --- a/bin/serve/get-port.js +++ b/bin/serve/get-port.js @@ -2,13 +2,11 @@ const getPort = require('get-port') -const DEFAULT_PORT = 3000 - module.exports = async cli => { const envPort = process.env.port || process.env.PORT if (envPort) return envPort - const { port: userPort = DEFAULT_PORT } = cli + const { port: userPort } = cli const port = await getPort(userPort) const inUse = port !== userPort