17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
import { AppModule } from '@/app.module';
|
|
import { bootstrap } from '@/bootstrap';
|
|
import { NestFactory } from '@nestjs/core';
|
|
import { NestExpressApplication } from '@nestjs/platform-express';
|
|
|
|
const main = async () => {
|
|
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
|
|
bufferLogs: true,
|
|
});
|
|
await bootstrap(app);
|
|
};
|
|
|
|
main().catch((error) => {
|
|
console.log(error);
|
|
process.exit(1);
|
|
});
|