You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common issue with deploying the app is ensuring that everything works. Sometimes you end up seeing that something is not working due to misconfiguration/ missing env variables.
@emilos I like this idea! In which scenerios you would use the method that does not throw? Maybe we should force throwing, so it's explicit and easier to discover for users ?
A common issue with deploying the app is ensuring that everything works. Sometimes you end up seeing that something is not working due to misconfiguration/ missing env variables.
Some time ago I wrote this: https://github.com/buxlabs/envb to make it a bit easier to control env variables.
It has a simple API:
env.fetch('SOME_ENV_VAR')
throws if the variable is missingenv.get('SOME_ENV_VAR')
does not throwThere are probably better libs, just wanted to highlight the idea.
The text was updated successfully, but these errors were encountered: