o1-labs / Archive-Node-API

This is a GraphQL server that is built with the intention of exposing information from Mina's Archive Node
17 stars 4 forks source link

Fix Boolean env vars parsing #74

Open shimkiv opened 1 year ago

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