import { INestApplication } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { <%= getRootModuleName() %> } from './<%= getRootModulePath() %>'; export async function createApp(): Promise { const app = await NestFactory.create(<%= getRootModuleName() %>); app.setGlobalPrefix('api/<%= getProjectName() %>'); await app.init(); return app; }