Change autosave interval to improve perf

This commit is contained in:
DrMint 2024-06-23 08:30:32 +02:00
parent d336a52d9f
commit eeab8fcc4a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export const buildVersionedCollectionConfig = (
buildCollectionConfig({ buildCollectionConfig({
...config, ...config,
timestamps: true, timestamps: true,
versions: { drafts: { autosave: true } }, versions: { drafts: { autosave: { interval: 10_000 } } },
hooks: { hooks: {
...config.hooks, ...config.hooks,
beforeChange: [...(config.hooks?.beforeChange ?? []), beforeChangeUpdatedBy], beforeChange: [...(config.hooks?.beforeChange ?? []), beforeChangeUpdatedBy],