Archive-Node-API icon indicating copy to clipboard operation
Archive-Node-API copied to clipboard

Fix Boolean env vars parsing

Open shimkiv opened this issue 1 year ago • 0 comments

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') {.

shimkiv avatar Apr 06 '23 18:04 shimkiv