Your application's static configuration is defined in appsettings.*.json. The Development version is for local development. The Production version is for when your app runs in Azure. The runtime will automatically use the matching file based on your environment. You also have the ServiceConfiguration class, which you can inject into your Blazor pages, components and also your Api controllers. That binding is hooked up at the start of the Startup function. That is where the json file is transformed into the ServiceConfiguration object.

Please note that because of this automatic deserialization, the structure of the class must match exactly the structure of the json file. Otherwise your app will fail to start.

Please take a look at the ServiceConfiguration class, as it documents what each of the settings represent.

Table of Contents

An error has occurred. This application may no longer respond until reloaded. Reload 🗙