Blazor web assembly environment specific appsettings #29013
-
From this link https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/environments?view=aspnetcore-3.1 It is my understand that I need the following in my web.config file for the environmental configs to get included in the download and get used.
However, when I publish a blazor web assembly project, a web.config file gets generated outside of the wwwroot folder. How can I control that config file? If I add a web.config to my web assembly project and publish, no file gets copied. I want to be able to control this config file so that I can add the proper environment header during my build process (hopefully using config transform). What is the right way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured it out, there was a note in the first link I shared. |
Beta Was this translation helpful? Give feedback.
Figured it out, there was a note in the first link I shared.
https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-3.1#use-a-custom-webconfig