docs.nestjs.com icon indicating copy to clipboard operation
docs.nestjs.com copied to clipboard

clarify the feature set of standalone apps

Open micalevisk opened this issue 1 year ago • 2 comments

I'm submitting a...

  • [ ] Regression
  • [ ] Bug report
  • [ ] Feature request
  • [x] Documentation issue or request (new chapter/page)
  • [ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

at https://docs.nestjs.com/standalone-applications isn't clear which nestjs features aren't supposed to work when using NestFactory.createApplicationContext (+ app.init)

Expected behavior

I'd like to see which features won't be evaluated in the standalone mode.

I'm not sure what is expected to work in such apps and what is not, I just have few guesses

here's a non-exhaustive WIP list of those features:

  • ~controllers~
  • middleware; which includes the NestModule interface
  • ~pipes~
  • ~guards~
  • ~interceptors~
  • ~filters~

the scratched ones are the features that although not useful (usually) in standalone apps they are initialized by nestjs (v10)

What is the motivation / use case for changing the behavior?

people sometimes complain that few features that aren't working when using the standalone mode.

micalevisk avatar May 09 '24 12:05 micalevisk

Would you like to create a PR for this?

kamilmysliwiec avatar May 10 '24 08:05 kamilmysliwiec

I'll create after testing every feature that I can recall

micalevisk avatar May 10 '24 12:05 micalevisk

https://github.com/nestjs/docs.nestjs.com/commit/0bd7775e7a9fb2b050c02ded9db7a90a09d6179d

kamilmysliwiec avatar Oct 18 '24 08:10 kamilmysliwiec