We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd60fa commit 46cdbc0Copy full SHA for 46cdbc0
src/plugins/factory/index.js
@@ -23,9 +23,10 @@ module.exports = async function(api, info = {}) {
23
24
const portfinder = require('portfinder');
25
26
- const _port = process.env.PORT || port || await portfinder.getPortPromise({
27
- port: 3000, // minimum port
28
- stopPort: 3333, // maximum port
+ const startPort = parseInt(process.env.PORT || port || 3000);
+ const _port = await portfinder.getPortPromise({
+ port: startPort, // minimum port
29
+ stopPort: startPort + 300, // maximum port
30
});
31
32
const _host = process.env.HOST || host || '0.0.0.0';
0 commit comments