From e25d3c9fde986ccf23b2cece50e5c4a9f7a86291 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Tue, 14 Nov 2023 18:31:21 +0800 Subject: [PATCH] Run syncing daily + disable cdn prerendering --- BlazorDiffusion/Configure.AppHost.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlazorDiffusion/Configure.AppHost.cs b/BlazorDiffusion/Configure.AppHost.cs index 48d1e41..32cc793 100644 --- a/BlazorDiffusion/Configure.AppHost.cs +++ b/BlazorDiffusion/Configure.AppHost.cs @@ -71,8 +71,8 @@ public override void Configure(Container container) CdnBucket = "diffusion-client", AssetsBasePath = r2AccessId != null ? "https://cdn.diffusion.works" : "/uploads", FallbackAssetsBasePath = r2AccessId != null ? "https://pub-97bba6b94a944260b10a6e7d4bf98053.r2.dev" : "/uploads", - SyncTasksInterval = TimeSpan.FromMinutes(10), - // DisableWrites = HostingEnvironment.IsDevelopment(), + SyncTasksInterval = TimeSpan.FromHours(24), + DisableWrites = true, }); container.Register(appConfig);