diff --git a/src/globals/BirthdayPage.ts b/src/globals/BirthdayPage.ts index 5d9e13e..3dbeeb4 100644 --- a/src/globals/BirthdayPage.ts +++ b/src/globals/BirthdayPage.ts @@ -7,6 +7,7 @@ export const BirthdayPage: GlobalConfig = { label: 'Дні народження — сторінка', access: { read: () => true, update: isAdminOrEditor }, hooks: { afterChange: [revalidateGlobalAfterChange] }, + versions: { max: 20, drafts: { autosave: { interval: 2000 } } }, fields: [ { name: 'heroTitle', diff --git a/src/globals/BlogIndexPage.ts b/src/globals/BlogIndexPage.ts index 6f55d40..3f6f410 100644 --- a/src/globals/BlogIndexPage.ts +++ b/src/globals/BlogIndexPage.ts @@ -7,6 +7,7 @@ export const BlogIndexPage: GlobalConfig = { label: 'Блог — список', access: { read: () => true, update: isAdminOrEditor }, hooks: { afterChange: [revalidateGlobalAfterChange] }, + versions: { max: 20, drafts: { autosave: { interval: 2000 } } }, fields: [ { name: 'heroTitle', diff --git a/src/globals/GroupVisitsPage.ts b/src/globals/GroupVisitsPage.ts index ea5e95e..2fea6fa 100644 --- a/src/globals/GroupVisitsPage.ts +++ b/src/globals/GroupVisitsPage.ts @@ -7,6 +7,7 @@ export const GroupVisitsPage: GlobalConfig = { label: 'Групові відвідування — сторінка', access: { read: () => true, update: isAdminOrEditor }, hooks: { afterChange: [revalidateGlobalAfterChange] }, + versions: { max: 20, drafts: { autosave: { interval: 2000 } } }, fields: [ { name: 'heroTitle', diff --git a/src/globals/HomePage.ts b/src/globals/HomePage.ts index 9625b6f..1446013 100644 --- a/src/globals/HomePage.ts +++ b/src/globals/HomePage.ts @@ -6,6 +6,7 @@ export const HomePage: GlobalConfig = { slug: 'home-page', access: { read: () => true, update: isAdminOrEditor }, hooks: { afterChange: [revalidateGlobalAfterChange] }, + versions: { max: 20, drafts: { autosave: { interval: 2000 } } }, fields: [ { name: 'hero', diff --git a/src/globals/LocationsPage.ts b/src/globals/LocationsPage.ts index 62300e9..e97bd87 100644 --- a/src/globals/LocationsPage.ts +++ b/src/globals/LocationsPage.ts @@ -7,6 +7,7 @@ export const LocationsPage: GlobalConfig = { label: 'Локації — сторінка', access: { read: () => true, update: isAdminOrEditor }, hooks: { afterChange: [revalidateGlobalAfterChange] }, + versions: { max: 20, drafts: { autosave: { interval: 2000 } } }, fields: [ { name: 'heroTitle', diff --git a/src/globals/TicketsPage.ts b/src/globals/TicketsPage.ts index 9d44287..4d60b8c 100644 --- a/src/globals/TicketsPage.ts +++ b/src/globals/TicketsPage.ts @@ -7,6 +7,7 @@ export const TicketsPage: GlobalConfig = { label: 'Квитки — сторінка', access: { read: () => true, update: isAdminOrEditor }, hooks: { afterChange: [revalidateGlobalAfterChange] }, + versions: { max: 20, drafts: { autosave: { interval: 2000 } } }, fields: [ { name: 'heroTitle',