How to use the mwp-app-server.default function in mwp-app-server

To help you get started, we’ve selected a few mwp-app-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meetup / meetup-web-platform / packages / mwp-consumer / scripts / app-server.js View on Github external
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;
	});
};

mwp-app-server

Hapi server startup module for MWP applications

MIT
Latest version published 1 year ago

Package Health Score

42 / 100
Full package analysis

Popular mwp-app-server functions

Similar packages