Add ngrok as dependency and add to boot.js something like that:
.....
.then(createServer);
.then(connectNgrok);
function connectNgrok()
if (process.env.NODE_ENV === 'development') {
ngrok.connect(app.get('port'), (err, url) => {
...
});
}
// return promise
}
Add ngrok as dependency and add to boot.js something like that:
..... .then(createServer); .then(connectNgrok); function connectNgrok() if (process.env.NODE_ENV === 'development') { ngrok.connect(app.get('port'), (err, url) => { ... }); } // return promise }