I'm following this guide https://docs.rollbar.com/docs/react#section-create-react-app and encounter unexpected behavior:

Inside /public/index.html:

var env = '%NODE_ENV%'
console.log(1:, ('%NODE_ENV%' === 'production'))
console.log(2:, '%NODE_ENV%')
console.log(3:, env)
console.log(4:, (env === 'production'))

output:

1: false
2: "production"
3: "production"
4: true

Why the first log is false?

I'm on [email protected]

0 Answers

Related Questions