Open shimkiv opened 1 year ago
By default any non-empty string env var in condition like this if (process.env.VAR) { will be parsed into boolean: true. So we need to check against another string if (process.env.VAR === 'true') {.
if (process.env.VAR) {
boolean: true
if (process.env.VAR === 'true') {
By default any non-empty string env var in condition like this
if (process.env.VAR) {
will be parsed intoboolean: true
. So we need to check against another stringif (process.env.VAR === 'true') {
.