Re:An introduction to type programming in TypeScript
by zumu on Wednesday February 02, 2022 @06:24AM
(#30176165)
Stuff like `dbConnectionString: process.env.DB_CONNECTION || 'localhost:27017'` is a good way to boot your app with the wrong environment variables and potentially cause security issues. I'd advise to make sure your app doesn't start or deploy if expected env vars aren't set.
[ Parent
| on HN ]
Re:An introduction to type programming in TypeScript
by lobstrosity420 on Wednesday February 02, 2022 @06:29AM
(#30176193)
If you do have some environment variable for which no safe fallback value may exist, you can implement that logic in the config file also. I was just giving a cursory example ;)