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)?

Explanation

Or register enhancers through APP_* providers so they're part of the module graph.

Further reading

Problem with a question

NestJS · Senior · question 61

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz