mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-27 01:00:05 +00:00
FIX: server urls on swagger
This commit is contained in:
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user