w3tecch / express-typescript-boilerplate

A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
MIT License
3.32k stars 903 forks source link

Fix: process.env[key] could be undefined #243

Closed iamarpitpatidar closed 2 years ago

iamarpitpatidar commented 3 years ago

process.env[key] could be undefined and splitting it would cause an error so replaced with process.env[key]?.split(delimiter) || [];