added timeout

This commit is contained in:
2026-04-14 19:35:21 -05:00
parent ac009d0688
commit f334a0f9e2
2 changed files with 8 additions and 4 deletions
+3
View File
@@ -89,6 +89,9 @@ import { Costo } from './costo/entities/costo.entity';
extra: {
connectionLimit: 10,
waitForConnections: true,
idleTimeout: 60000,
connectTimeout: 10000,
},
}),
}),
+5 -4
View File
@@ -10,10 +10,11 @@ async function bootstrap() {
app.useGlobalPipes(new ValidationPipe());
app.enableCors(
// {
// origin: configService.get<string>('Front_URL'),
// }
);
// {
// origin: configService.get<string>('Front_URL'),
// }
);
app.enableShutdownHooks();
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();