diff --git a/src/app.module.ts b/src/app.module.ts index fa19657..02aa7fe 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -89,6 +89,9 @@ import { Costo } from './costo/entities/costo.entity'; extra: { connectionLimit: 10, + waitForConnections: true, + idleTimeout: 60000, + connectTimeout: 10000, }, }), }), diff --git a/src/main.ts b/src/main.ts index 632ab4e..226da7d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,10 +10,11 @@ async function bootstrap() { app.useGlobalPipes(new ValidationPipe()); app.enableCors( - // { - // origin: configService.get('Front_URL'), - // } -); + // { + // origin: configService.get('Front_URL'), + // } + ); + app.enableShutdownHooks(); await app.listen(process.env.PORT ?? 3000); } bootstrap();