import { Server } from '@nestjs.pro/common/dist/server/Server'; import { AppModule } from './AppModule'; const serverUrls = []; serverUrls.push('https://api.streaming-platform.com'); if (Server.getEnvironment() === 'local') { serverUrls.push(`http://localhost:${ process.env.PORT }`); } else if (Server.getEnvironment() === 'docker') { serverUrls.push('http://localhost:18080'); } Server.bootstrap(AppModule, 'modules', Number(process.env.PORT) || 3000, { path: '/rbac/swagger', title: 'RBAC API', description: 'Role based access control API.', version: '0.0.1', tags: [], contactName: 'support@streaming-platform.com', contactEmail: 'support@streaming-platform.com', contactUrl: 'https://streaming-platform.com', docsDescription: 'docs', docsUrl: 'https://streaming-platform.com', serverUrls }, [ 'https://app.streaming-platform.com', 'http://localhost:4200' ], null);