This commit is contained in:
parent
9fa279b962
commit
fa48a192e3
@ -25,13 +25,13 @@ const Pages: CollectionConfig = {
|
||||
update: isAdmin,
|
||||
delete: isAdmin,
|
||||
},
|
||||
/* hooks: {
|
||||
hooks: {
|
||||
afterChange: [
|
||||
async ({ doc, collection }) => {
|
||||
revalidateTag(generateDocumentCacheKey(collection.slug, doc.path))
|
||||
},
|
||||
],
|
||||
}, */
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
type: 'tabs',
|
||||
|
@ -1,4 +1,6 @@
|
||||
import Paragraph from '@/app/(payload)/blocks/paragraph'
|
||||
import Author from './Author'
|
||||
import RichText from './RichText'
|
||||
|
||||
export type AdditionalBlockProps = {
|
||||
blockIndex: number
|
||||
@ -7,6 +9,8 @@ export type AdditionalBlockProps = {
|
||||
|
||||
const blockComponents = {
|
||||
Author: Author,
|
||||
RichText: RichText,
|
||||
Paragraph: Paragraph,
|
||||
}
|
||||
|
||||
const Blocks = ({ blocks, locale }: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user