init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module.js';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule, {
|
||||
// Better Auth reads the raw request body; AuthModule parses JSON and
|
||||
// form bodies for every other route.
|
||||
bodyParser: false,
|
||||
});
|
||||
app.enableShutdownHooks(); // closes the database pool on SIGTERM/SIGINT
|
||||
await app.listen(process.env.PORT ?? 3000);
|
||||
}
|
||||
await bootstrap();
|
||||
Reference in New Issue
Block a user