You can use App Configuration client library for JavaScript. This should help.
React app deploying in azure app services
Hi all,
i am going to deploy react JS application in azure app services, my requirement is , all configuration related information i want to fetch from app service configuration settings i.e i dont want to keep any configuration code example clientID, client secret in react js application code.
how i can achieve this?
2 answers
Sort by: Most helpful
-
-
SnehaAgrawal-MSFT 18,361 Reputation points
2022-01-27T12:56:53.777+00:00 Thanks for asking question! As mentioned by JaliyaUdagedara you can use:
https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/appconfiguration/app-configurationFurther you may want to know that Azure App Configuration provides a service to centrally manage application settings and feature flags. Modern programs, especially programs running in a cloud, generally have many components that are distributed in nature. Spreading configuration settings across these components can lead to hard-to-troubleshoot errors during an application deployment. Use App Configuration to store all the settings for your application and secure their accesses in one place.
Click to know: Why use App Configuration and benefits.
More details: https://azure.microsoft.com/en-us/services/app-configuration/#overview
Let us know if further query or issue remains.