I am trying to access an environment variable through process.env in my React/Typescript code, but it's returning undefined. I am able to access NODE_ENV
though.
console.log(process.env.CURRENT_URL) // prints "undefined" on browser
console.log(process.env.NODE_ENV) // prints "development" on browser
CURRENT_URL
is present in windows environment variable.
Why is process.env.NODE_ENV
is accessible but not the other variable?