Skip to content

Commit

Permalink
Merge pull request #168 from brunosilvade/main
Browse files Browse the repository at this point in the history
Issue #164 Rota de documentação privada
  • Loading branch information
wouerner authored Sep 4, 2024
2 parents 08b5884 + d8769de commit cd14412
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ async function bootstrap() {
.build();

const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document);

if (process.env.NODE_ENV == 'development') {
SwaggerModule.setup('api', app, document);
}

await app.listen(process.env.PORT || 3000);
console.info(`🚀🚀 App listening on port ${process.env.PORT || 3000} 🚀🚀`);
Expand Down

0 comments on commit cd14412

Please sign in to comment.