Add mention for `forceCloseConnections` feature of `NestFactory.create`
micalevisk opened this issue · 3 comments
micalevisk commented
That feature introduced in Nestjs v9.2.0 by this PR: nestjs/nest#10345 isn't mentioned anywhere in the docs site.
Not sure where we can mention about that tho
kamilmysliwiec commented
Perhaps we should add a new chapter under FAQ category?
micalevisk commented
@tolgap do you have any other suggestion?
tolgap commented
@tolgap do you have any other suggestion?
I think FAQ would be the right directory. Devs will most likely run into the "hanging of the application" when they use .enableShutdownHooks()
in their app. So we could add a chapter about why the app might not restart correctly in watch mode and .enableShutdownHooks()
and that they should use forceCloseConnections
as well👍