Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hopsBuild.runBuild(program, function (error) {
if (error) {
callback ? callback(error) : console.error(error.stack.toString());
} else {
hopsExpress.startServer(callback);
}
});
}
handler: function serveHandler (argv) {
if (argv.production) {
process.env.NODE_ENV = 'production';
}
process.env.HOPS_MODE = argv.static ? 'static' : 'dynamic';
hopsExpress.startServer(callback);
}
};