Files
clipperia-api/src/main.ts
LeoMortari 741a762620 Reset logs
2025-09-15 01:29:22 -03:00

14 lines
419 B
TypeScript

import { ClassSerializerInterceptor } from '@nestjs/common';
import { NestFactory, Reflector } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const reflector = app.get(Reflector);
app.useGlobalInterceptors(new ClassSerializerInterceptor(reflector));
await app.listen(process.env.PORT ?? 3000);
}
void bootstrap();