Closed nneves closed 2 years ago
When setting a "boolean" env var to false (.env file or shell export), the Environment service will always return true.
Example: set the local .env file to SMTP_SECURE=false
This code will always evaluate it to true (parsedField will always be true, regardeless of the value you put) https://github.com/GJordao/simple-auth/blob/master/src/services/Environment/Environment.ts#L82
There are some conditions in the cloud that you want to turn ON or OFF the functionality by changing the env var between true/false, at the moment you need to completly remove the env var from the setup to make it OFF!
When setting a "boolean" env var to false (.env file or shell export), the Environment service will always return true.
Example: set the local .env file to SMTP_SECURE=false
This code will always evaluate it to true (parsedField will always be true, regardeless of the value you put) https://github.com/GJordao/simple-auth/blob/master/src/services/Environment/Environment.ts#L82
There are some conditions in the cloud that you want to turn ON or OFF the functionality by changing the env var between true/false, at the moment you need to completly remove the env var from the setup to make it OFF!