NestJS · Senior · Question 61 of 75
Why is it a good idea to separate the Nest app bootstrap (main.ts) from app configuration (e.g. a configureApp(app) function)?
- 1Nest requires it
- ✓Correct answer: Tests can create the app with the same pipes, filters, versioning and prefixes as production
- 3It makes the bundle smaller
Explanation
Or register enhancers through APP_* providers so they're part of the module graph.