feat: als and prisma
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(process.env.PORT ?? 3000);
|
||||
|
||||
const config = app.get(ConfigService);
|
||||
const port = config.get<number>('PORT') ?? 3000;
|
||||
|
||||
await app.listen(port);
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user