Merge pull request #173 from ADefWebserver/debugging

Adds DetailedErrors when Debugging
This commit is contained in:
Shaun Walker
2019-11-15 09:42:14 -05:00
committed by GitHub
2 changed files with 6 additions and 16 deletions

View File

@ -50,8 +50,12 @@ namespace Oqtane.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
#if DEBUG
services.AddServerSideBlazor().AddCircuitOptions(options => { options.DetailedErrors = true; });
#endif
#if RELEASE
services.AddServerSideBlazor();
#endif
// setup HttpClient for server side in a client side compatible fashion ( with auth cookie )
if (!services.Any(x => x.ServiceType == typeof(HttpClient)))
{