INNER CODE UNIT · TypeScript
bootstrap
meysamhadeli/booking-microservices-nestjs · src/passenger/src/main.ts:11
async function bootstrap() {
OpenTelemetryModule.start();
const app = await NestFactory.create(AppModule);
const logger = app.get(OtelLogger);
app.useLogger(logger);
app.enableShutdownHooks();
const globalPrefix = 'api';
app.setGlobalPrefix(globalPrefix);
const port = configs.port || 3355;
app.enableVersioning({
type: VersioningType.URI,
});