nestjs/docs.nestjs.com

Add mention for `forceCloseConnections` feature of `NestFactory.create`

micalevisk opened this issue · 3 comments

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

Perhaps we should add a new chapter under FAQ category?

@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👍