From 051bf026975b7393921ee7b35d5678488ef212b7 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Tue, 14 Nov 2023 18:31:45 +0800 Subject: [PATCH] Run syncing daily + disable cdn prerendering --- BlazorDiffusion.Client/wwwroot/js/input-comment.js | 2 +- BlazorDiffusion/Configure.AppHost.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BlazorDiffusion.Client/wwwroot/js/input-comment.js b/BlazorDiffusion.Client/wwwroot/js/input-comment.js index 99f3775..6c47202 100644 --- a/BlazorDiffusion.Client/wwwroot/js/input-comment.js +++ b/BlazorDiffusion.Client/wwwroot/js/input-comment.js @@ -48,5 +48,5 @@ export default { error, submit, } - }, + } } 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);