Change autosave interval to improve perf
This commit is contained in:
parent
d336a52d9f
commit
eeab8fcc4a
|
@ -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],
|
||||||
|
|
Loading…
Reference in New Issue