skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
556 stars 194 forks source link

Fix #65 #71

Closed selangley-wa closed 2 years ago

selangley-wa commented 2 years ago

Enable Admin.UI StaticWebAssets in non-development environments as per Microsoft's documentation:

https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-6.0&tabs=visual-studio#consume-content-from-a-referenced-rcl-1

When running the consuming app from build output (dotnet run), static web assets are enabled by default in the Development environment. To support assets in other environments when running from build output, call UseStaticWebAssets on the host builder in Program.cs:

Fix https://github.com/skoruba/Duende.IdentityServer.Admin/issues/65

skoruba commented 2 years ago

Thanks! I am sorry for delay. 😊