11 lines
283 B
TypeScript
11 lines
283 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { AppModule } from './app.module';
|
|
import helmet from 'helmet';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
app.use(helmet());
|
|
await app.listen(process.env.PORT ?? 3000);
|
|
}
|
|
void bootstrap();
|