Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function main(appMap) {
if (!appMap) {
throw new Error('No map of localeCode to renderer provided');
}
const plugins = []; // for serving the favicon
return startServer(appMap, { routes, plugins }).catch(err => {
// catch because otherwise Node swallows errors in Promises
throw err;
});
};