From 5d3017412f8a2635e9001034252b4ec4db8525a8 Mon Sep 17 00:00:00 2001 From: Michael Washington Date: Thu, 14 Nov 2019 05:42:06 -0800 Subject: [PATCH] Adds DetailedErrors --- Oqtane.Server/Startup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Oqtane.Server/Startup.cs b/Oqtane.Server/Startup.cs index 3d5a8497..43d92a2a 100644 --- a/Oqtane.Server/Startup.cs +++ b/Oqtane.Server/Startup.cs @@ -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))) {