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