2👍
✅
To expand on @Ohgodwhy’s comment:
let result = process.env.NODE_ENV == "production" ?
'https://www.web1.com/' :
'https://stage.web1.com/'
👤Jeff
Source:stackexchange.com