is there anyway to do an optional config.require? ...
# general
m
is there anyway to do an optional config.require? I have a scenario where I want to use the value in the config file if it exists, but fall back to a default if it doesn't exist. At the minute to do that I'd need to wrap it in a try/catch because config.require will throw an error if it doesn't exist
b
just use the
get
methods instead of the
require
methods
m
🤦‍♂️ must have missed that, thanks