Create post preview component

This commit is contained in:
tobias
2024-06-24 13:39:37 +02:00
parent 5d652dc606
commit 7943ffbd55
2 changed files with 37 additions and 2 deletions

View File

@ -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(),