fix: api v2 docs in prod (#14898)

This commit is contained in:
Morgan authored and GitHub committed 2024-05-06 11:50:21 +00:00
1 parent 8deedfd361
commit 4cb77abfd7
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -24,9 +24,7 @@ const run = async () => {
try {
bootstrap(app);
const port = app.get(ConfigService<AppConfig, true>).get("api.port", { infer: true });
if (process.env.SKIP_DOCS_GENERATION !== "1") {
void generateSwagger(app);
}
void generateSwagger(app);
await app.listen(port);
logger.log(`Application started on port: ${port}`);
} catch (error) {