diff --git a/src/main.ts b/src/main.ts index 7e54651..add8d4c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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);