String comparison not working in Javascript when comparing an environment variable with a constant
The solution was pass both to stringify, like this:
JSON.stringify(process.env.REACT_APP_LOGGER) === JSON.stringify("LOGGER")
In this way, we could cast both variables in the same string format, both have the same length and both have the same value, but environment variables injected by Azure Process are not the same.