I have follow this example to add web.config file to react project.
https://javascript.works-hub.com/learn/how-to-host-a-react-app-on-azure-10042
I have added below code to my web.config.
<appSettings>
<add key="SERVICE_BASE_URL"value="https://localhost:44385/"/>
</appSettings>
I need to read this value from react. Is there a way to do this. please give any suggestions. I tried this way.
import "../web.config";
let SERVICE_BASE_URL = '<%= System.Configuration.ConfigurationManager.AppSettings["SERVICE_BASE_URL"].ToString() %>';