UNPKG

base-nestjs-app

Version:

Nestjs wrapper for creation of standarized apps

13 lines 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.listen = listen; const DEFAULT_PORT = 3000; async function listen(app, options) { if (options.microservices?.length) { await app.startAllMicroservices(); } await app.listen(options.server?.port ?? DEFAULT_PORT, '0.0.0.0'); options.loggingModule.logger.info(`Listening on ${await app.getUrl()}`); return app; } //# sourceMappingURL=listen.js.map