Access application settings in react application deployed on Azure

1.1k views Asked by At

I have deployed react application on Azure app service and I need to access application settings from environment variable. I have checked using kudu using following command and its showing application setting output of-

node --print 'process.env'

but when I am trying to access that from react code the object has changed and process.env its showing different value.

console.log(process.env)

Thanks, Shraddha Agrawal

1

There are 1 answers

0
Agrawal Shraddha On

Append application setting key with 'REACT_APP_'.