FIX: server urls on swagger

This commit is contained in:
Gabriel Rosa
2022-07-15 15:24:42 -03:00
parent 071c524a2e
commit 339432df16
+5 -1
View File
@@ -42,7 +42,11 @@ async function bootstrap() {
.setDescription('Documentation for Maestro gateway')
.setVersion('1.0')
.addBearerAuth()
.addServer('http://127.0.0.1:3333')
.addServer(
process.env.ENV === 'local'
? 'http://127.0.0.1:3333'
: 'https://maestro.dev.dadosfera.ai',
)
.build();
const document = SwaggerModule.createDocument(app, config);