File: /var/dev/shahnamag/back-end/src/main.ts
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { NestExpressApplication } from '@nestjs/platform-express';
import { ValidationPipe } from '@nestjs/common';
async function bootstrap() {
  const app = await NestFactory.create<NestExpressApplication>(AppModule);
  app.useGlobalPipes(new ValidationPipe({
    whitelist: false,
    transform: true
  }));
  app.setGlobalPrefix('api/v1');
  app.set('query parser', 'extended');
  await app.listen(process.env.PORT ?? 2010);
}
bootstrap();