This commit is contained in:
olehhapuk
2026-12-01 12:12:13 +02:00
parent 6698ce32c7
commit ebf6ec2e39
67 changed files with 7317 additions and 1261 deletions
+13
View File
@@ -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();