diff --git a/Oqtane.Server/Startup.cs b/Oqtane.Server/Startup.cs index a824dfbc..cfe88fa7 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))) { diff --git a/Oqtane.Server/appsettings.json b/Oqtane.Server/appsettings.json index 8138a005..dbfefb7f 100644 --- a/Oqtane.Server/appsettings.json +++ b/Oqtane.Server/appsettings.json @@ -2,18 +2,4 @@ "ConnectionStrings": { "DefaultConnection": "" } -} - - - - - - - - - - - - - - +} \ No newline at end of file