Create post preview component
This commit is contained in:
@ -43,9 +43,8 @@ export default buildConfig({
|
||||
},
|
||||
livePreview: {
|
||||
url: ({ data, locale }) =>
|
||||
//TODO: Rewrite to collection_slug/preview/
|
||||
`${process.env.BASE_URL}/preview${data.path}${locale ? `?locale=${locale.code}` : ''}`,
|
||||
collections: [COLLECTION_SLUG_PAGE],
|
||||
collections: [COLLECTION_SLUG_PAGE, COLLECTION_SLUG_POST],
|
||||
},
|
||||
},
|
||||
editor: lexicalEditor(),
|
||||
|
Reference in New Issue
Block a user