NestJS · Middle · Question 49 of 75

How do you validate environment variables at startup with @nestjs/config?

Explanation

Failing fast at startup is better than crashing on the first request that needs a missing variable.

Further reading

Problem with a question

NestJS · Middle · question 49

Test yourself

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

Take this quiz