import { NestFactory } from '@nestjs/core' ; import { AppModule } from './app/app.module' ; async function bootstrap ( ) { const app = await NestFactory . create ( AppModule ) ; app . setGlobalPrefix ( 'host' ) ; await app . listen ( process . env . PORT || 1111 ) ; } declare const __non_webpack_require__ ; const mainModule = __non_webpack_require__ . main ; const moduleFilename = ( mainModule && mainModule . filename ) || '' ; if ( moduleFilename === __filename || moduleFilename . includes ( 'iisnode' ) ) { bootstrap ( ) . catch ( ( err ) => console . error ( err ) ) ; }