From eeab8fcc4a2b29226ffc885395b673349bc2c0a5 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 23 Jun 2024 08:30:32 +0200 Subject: [PATCH] Change autosave interval to improve perf --- src/utils/versionedCollectionConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/versionedCollectionConfig.ts b/src/utils/versionedCollectionConfig.ts index 0e067f2..787aca8 100644 --- a/src/utils/versionedCollectionConfig.ts +++ b/src/utils/versionedCollectionConfig.ts @@ -25,7 +25,7 @@ export const buildVersionedCollectionConfig = ( buildCollectionConfig({ ...config, timestamps: true, - versions: { drafts: { autosave: true } }, + versions: { drafts: { autosave: { interval: 10_000 } } }, hooks: { ...config.hooks, beforeChange: [...(config.hooks?.beforeChange ?? []), beforeChangeUpdatedBy],