#Bypass exception handler
8 messages · Page 1 of 1 (latest)
instead of crashing you could this.logger.error() followed by a exception you throw perhaps?
I would like it to crash completely since the service shouldn't even be running without those env vars in the config
actually there is some docs regarding this
docs mention you can use class-validator joi to validate the env variables
ill look it up - thanks for the suggestion
found it, and it was joi
https://docs.nestjs.com/techniques/configuration#schema-validation
my mistake
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
yeah, this works, thanks!
This post has been marked as resolved. :white_check_mark:
Please read through the conversation and resolution if you are having the same issue, and then re-open the post if you are still having trouble, providing as much extra information as possible.